Correct way to handle fork/exec errors with DBusServer

Thiago Macieira thiago at kde.org
Thu Jan 8 14:27:57 PST 2009


Avery Pennarun wrote:
>Anyway, the correct solution is indeed to just run _exit() in all but
>one of the family of processes, and exit() only when the very last one
>dies.

Agreed. Use of _exit is correct. It has nothing to do with timing, though. 
It's perfectly ok to use _exit on the first process and keep going with 
the child for a longer time, until exit().

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20090108/3500d076/attachment.pgp 


More information about the dbus mailing list