Date: Tue, 8 Aug 2006 13:30:35 +0400 From: Yar Tikhiy <yar@comp.chem.msu.su> To: Bruce M Simpson <bms@FreeBSD.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/reboot reboot.c Message-ID: <20060808093035.GK54416@comp.chem.msu.su> In-Reply-To: <200608021305.k72D5c9R055142@repoman.freebsd.org> References: <200608021305.k72D5c9R055142@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060808093035.GK54416>