Patch: Fix zcip deamonization...

David Daney ddaney at avtrex.com
Wed Feb 14 08:53:57 PST 2007


The mailing list was broken yesterday.  I am resending this message:

-------- Original Message --------
Subject: Patch: Fix zcip deamonization...
Date: Tue, 13 Feb 2007 13:09:24 -0800
From: David Daney <ddaney at avtrex.com>
To: busybox at busybox.net

In r17390 the call to xdaemon(0, 0) was replaced with a call to
bb_daemonize().  This does not work because bb_daemonize() closes all
open file descriptors and zcip opens its socket before daemonzing.


The fix is to revert to using xdaemon(0, 0).  I also removed the call to
setsid(), as it is usless in this context.

Please commit if OK.

Thanks
David Daney

-------------- next part --------------
A non-text attachment was scrubbed...
Name: zcip.diff
Type: text/x-patch
Size: 361 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20070214/293ba11b/attachment.bin 


More information about the busybox mailing list