[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] bb_daemonize: double-fork to ensure child doesn't get
From:       Peter Korsgaard <jacmet () sunsite ! dk>
Date:       2011-11-09 15:36:42
Message-ID: 87lirp2tpx.fsf () macbook ! be ! 48ers ! dk
[Download RAW message or body]

>>>>> "Denys" == Denys Vlasenko <vda.linux@googlemail.com> writes:

Hi,

 Denys> Fork is expensive. vfork+exec on NOMMU doubly so.
 Denys> In many cases, callers know that they will never try open a tty.
 Denys> Let's make this second fork_or_rexec() optional:

 Denys> if (flags & DAEMON_DOUBLE_FORK) ...

Ok. From a quick look it only seems to only be needed for
start-stop-daemon as the other users either don't exec or do another
fork before executing programs.

I'll send an updated patch shortly.

-- 
Bye, Peter Korsgaard
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic