[PATCH] start-stop-daemon: close extra fds on --background
Andreas Wetzel
andreas.wetzel at bridgeco.net
Tue Jul 1 01:27:22 PDT 2008
hi again,
in start-stop-daemon, if --background is given, i think we should
completely detach the called process, including closing all extra
file-descriptors.
for non-mmu, this seems to be the case. but if BB_MMU is set, we do not
set the DAEMON_CLOSE_EXTRA_FDS flag when calling bb_daemonize.
the attached patch sets this flag, therefore makes the behaviour
consistent for the mmu and non-mmu case (diffed against the
busybox_1_9_stable branch).
cheers,
andi
--
Andreas Wetzel Core Software Engineer
BridgeCo AG Direct +41 44 802 33 19
Ringstrasse 14 Phone +41 44 802 33 33
CH-8600 Dübendorf Fax +41 44 802 33 39
Switzerland mailto:andreas.wetzel at bridgeco.net
http://www.bridgeco.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: start_stop_daemon.patch
Type: text/x-diff
Size: 414 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20080701/9a49a8f2/attachment.patch
More information about the busybox
mailing list