[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/6] Fix daemonize options
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH 3/6] Fix daemonize options |
Date: |
Thu, 31 Jan 2008 16:36:17 -0600 |
The -daemonize option is too restrictive when using with SDL. It also switches
the working directory to / too early which causes block devices with a relative
path to fail.
The -daemonize option is needed for my regression testing so I've included this
patch in the series.
Index: qemu/vl.c
===================================================================
--- qemu.orig/vl.c 2008-01-30 13:47:37.000000000 -0600
+++ qemu/vl.c 2008-01-30 13:47:39.000000000 -0600
@@ -8766,11 +8766,6 @@
}
#ifndef _WIN32
- if (daemonize && !nographic && vnc_display == NULL) {
- fprintf(stderr, "Can only daemonize if using -nographic or -vnc\n");
- daemonize = 0;
- }
-
if (daemonize) {
pid_t pid;
@@ -8808,7 +8803,6 @@
exit(1);
umask(027);
- chdir("/");
signal(SIGTSTP, SIG_IGN);
signal(SIGTTOU, SIG_IGN);
@@ -9067,6 +9061,7 @@
if (len != 1)
exit(1);
+ chdir("/");
TFR(fd = open("/dev/null", O_RDWR));
if (fd == -1)
exit(1);
[Qemu-devel] [PATCH 3/6] Fix daemonize options,
Anthony Liguori <=
[Qemu-devel] [PATCH 6/6] QEMU support for the Kernel Virtual Machine interface, Anthony Liguori, 2008/01/31
[Qemu-devel] [PATCH 2/6] SCI fixes, Anthony Liguori, 2008/01/31
[Qemu-devel] [PATCH 4/6] Tell BIOS about the number of CPUs, Anthony Liguori, 2008/01/31
Re: [qemu-devel] [PATCH 0/6] Support for the Kernel Virtual Machine interface, Anthony Liguori, 2008/01/31