Denys Vlasenko wrote:
> I noticed another bug: we do not restore SIGCHLD/SIGPIPE to default.
>
> As to "zombies created without -K" problem, I guess
>         signal(SIGCHLD, SIG_IGN);
> will prevent that, no need to have handler installed/called.
>   
Ignoring SIGCHLD should work. According to the man page, on execve() 
signals set to be caught are reset to default, while SIGCHLD set to 
SIG_IGN is undefined. The behavior of other signals set to SIG_IGN is 
not even mentioned, so restoring them to default is the safe solution.

Regards
Ralf Friedl
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to