[BusyBox] init blocks signals and forgets to clear signal mask before executing news processes

Vladimir N. Oleynik dzo at simtreas.ru
Mon Oct 6 10:05:59 UTC 2003


> There is sigaction() and sigprocmask(). The code you mentioned removes
> any signal handler set via sigaction() (except SIG_IGN). But SIGHUP
> ist *blocked* via sigprocmask and this is inherited via execve.
> Write a small programm, start it via init, read your current list of
> blocked signals using sigprocmask and you will see, that SIGHUP is
> blocked (not ignored).

Hmm, I shall be testing it later.

>>Also. This init.c part code have full equivalent sysvinit package.

> Really?

Yes. I compared with last debian sysvinit 2.85.
Compare sysvinit spawn() and busybox run() - signal`s manipulations full equivalent.


More information about the busybox mailing list