From owner-cvs-all@FreeBSD.ORG Tue Aug 8 09:30:42 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B50D916A4E5; Tue, 8 Aug 2006 09:30:42 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 678FA43D62; Tue, 8 Aug 2006 09:30:39 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.3) with ESMTP id k789UaRt067107; Tue, 8 Aug 2006 13:30:36 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.3/Submit) id k789UaTb067106; Tue, 8 Aug 2006 13:30:36 +0400 (MSD) (envelope-from yar) Date: Tue, 8 Aug 2006 13:30:35 +0400 From: Yar Tikhiy To: Bruce M Simpson Message-ID: <20060808093035.GK54416@comp.chem.msu.su> References: <200608021305.k72D5c9R055142@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200608021305.k72D5c9R055142@repoman.freebsd.org> User-Agent: Mutt/1.5.9i Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/reboot reboot.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Aug 2006 09:30:42 -0000 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