[PATCH] start-stop-daemon: close extra fds on --background

Denys Vlasenko vda.linux at googlemail.com
Tue Jul 1 12:01:56 UTC 2008


On Tuesday 01 July 2008 10:27, Andreas Wetzel wrote:
> 
> 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).

I am applying the following patch. It also addresses no less than 3 (!)
other bugs...

ssd: do not stat -x EXECUTABLE, it is not needed anymore
ssd: use PATH
ssd: fix -a without -x case
ssd: CLOSE_EXTRA_FDS in MMU case too

--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.patch
Type: text/x-diff
Size: 3279 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080701/5cd1f964/attachment.bin 


More information about the busybox mailing list