cvs commit: src/sbin/reboot reboot.c

Yar Tikhiy yar at comp.chem.msu.su
Tue Aug 8 09:30:42 UTC 2006


On Wed, Aug 02, 2006 at 01:05:38PM +0000, Bruce M Simpson wrote:
> bms         2006-08-02 13:05:38 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sbin/reboot          reboot.c 
>   Log:
>   Block a variety of signals which may afffect reboot(8), before killing
>   init(8), to avoid losing a race to them and dying before being able
>   to call reboot(2).

By the way, did you consider the other policy, "default to deny,"
there: Mask all signals with sigfillset(), then unmask only those
we are willing to handle, and finally pass the mask to sigprocmask()?
That should be more robust, IMHO.  Thanks!

-- 
Yar


More information about the cvs-src mailing list