Ash + telnetd: telnet client hangs after exit
Ralf Friedl
Ralf.Friedl at online.de
Mon Nov 5 08:03:25 PST 2007
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
More information about the busybox
mailing list