+Tue Mar 11 10:17:53 EDT 2008 Daniel P. Berrange <berrange@redhat.com>
+
+ * qemud/qemud.c: Don't run cleanup code when parent process is
+ exiting in daemon mode.
+
Fri Mar 7 12:11:53 CET 2008 Daniel Veillard <veillard@redhat.com>
* docs/libvir.html docs/storage.html: apply documentation fixes
case -1:
return -1;
default:
- return nextpid;
+ _exit(0);
}
cleanup:
status != 0) {
return -1;
}
-
- return pid;
+ _exit(0);
}
}
}
goto error1;
if (godaemon) {
- int pid;
openlog("libvirtd", 0, 0);
- pid = qemudGoDaemon();
- if (pid < 0) {
+ if (qemudGoDaemon() < 0) {
qemudLog(QEMUD_ERR, _("Failed to fork as daemon: %s"),
strerror(errno));
goto error1;
}
- if (pid > 0)
- goto out;
/* Choose the name of the PID file. */
if (!pid_file) {
if (godaemon)
closelog();
- out:
ret = 0;
error2: