1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 07:59:00 +00:00
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
..
2009-09-21 14:41:42 +01:00
2009-09-21 14:41:42 +01:00
2009-09-21 14:41:42 +01:00
2009-10-08 11:56:06 +01:00
2009-09-21 14:41:45 +01:00
2009-09-21 14:41:42 +01:00
2009-10-02 11:43:26 +02:00
2009-10-02 11:43:26 +02:00
2009-09-30 14:05:24 +02:00