libvirt/daemon
Daniel P. Berrange 4296cea2b2 Don't let parent of daemon exit until basic initialization is done
The daemonizing code lets the parent exit almost immediately. This
means that it may think it has successfully started even when
important failures occur like not being able to acquire the PID
file. It also means network sockets are not yet open.

To address this when daemonizing the parent passes an open pipe
file descriptor to the child. The child does its basic initialization
and then writes a status code to the pipe indicating either success,
or failure. This ensures that when daemonizing, the parent does not
exit until the pidfile is acquired & basic network sockets are open.

Initialization of the libvirt drivers is still done asynchronously
since this may take a very long time.

* daemon/libvirtd.c: Force parent to stay around until basic config
  file, pidfile & network socket init is completed
2009-11-02 11:41:35 -05:00
..
.gitignore Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
dispatch.c Pass remote_message_header to the dispatch functions. 2009-09-30 14:05:57 +02:00
dispatch.h Change signature of remoteSendStreamData() to fix compile warning 2009-09-30 12:37:10 +02:00
event.c Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
event.h Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.aug Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.c Don't let parent of daemon exit until basic initialization is done 2009-11-02 11:41:35 -05:00
libvirtd.conf Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.h Pull signal setup code out into separate method 2009-11-02 11:41:35 -05:00
libvirtd.init.in Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.logrotate.in Do not log rotate very small logs 2009-10-21 13:56:04 +02:00
libvirtd.policy-0 Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.policy-1 Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.sasl Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.sysconf Allow control over QEMU audio backend 2009-09-29 15:53:10 +01:00
Makefile.am Misc win32 build fixes 2009-10-08 11:56:06 +01:00
mdns.c Rename daemon main code 2009-09-21 14:41:45 +01:00
mdns.h Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
remote_dispatch_args.h Tunnelled migration. 2009-10-02 11:43:26 +02:00
remote_dispatch_prototypes.h Tunnelled migration. 2009-10-02 11:43:26 +02:00
remote_dispatch_ret.h Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
remote_dispatch_table.h Tunnelled migration. 2009-10-02 11:43:26 +02:00
remote_generate_stubs.pl Pass remote_message_header to the dispatch functions. 2009-09-30 14:05:57 +02:00
remote.c Remove unneccessary uri_in parameter from virMigratePrepareTunnel 2009-10-09 12:35:06 +01:00
remote.h Pass remote_message_header to the dispatch functions. 2009-09-30 14:05:57 +02:00
stream.c Let remoteClientStream only do RX if requested. 2009-09-30 14:05:41 +02:00
stream.h Let remoteClientStream only do RX if requested. 2009-09-30 14:05:41 +02:00
test_libvirtd.aug Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
THREADING.txt Fix up a few typos in the tree. 2009-09-30 14:05:24 +02:00