From owner-cvs-src-old@FreeBSD.ORG Sat Jan 15 08:19:19 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CECCA1065741 for ; Sat, 15 Jan 2011 08:19:19 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id BD63B8FC0A for ; Sat, 15 Jan 2011 08:19:19 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p0F8JJG7034806 for ; Sat, 15 Jan 2011 08:19:19 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p0F8JJFM034805 for cvs-src-old@freebsd.org; Sat, 15 Jan 2011 08:19:19 GMT (envelope-from pjd@repoman.freebsd.org) Message-Id: <201101150819.p0F8JJFM034805@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to pjd@repoman.freebsd.org using -f From: Pawel Jakub Dawidek Date: Sat, 15 Jan 2011 08:18:58 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sbin/hastd hastd.c hooks.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jan 2011 08:19:19 -0000 pjd 2011-01-15 08:18:58 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sbin/hastd hastd.c hooks.c Log: SVN rev 217439 on 2011-01-15 08:18:58Z by pjd MFC r217307,r217308,r217312: r217307: Install default signal handlers before masking signals we want to handle. It is possible that the parent process ignores some of them and sigtimedwait() will never see them, eventhough they are masked. The most common situation for this to happen is boot process where init(8) ignores SIGHUP before starting to execute /etc/rc. This in turn caused hastd(8) to ignore SIGHUP. Reported by: trasz Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com r217308: Add a note that when custom signal handler is installed for a signal, signal action is restored to default in child after fork(2). In this case there is no need to do anything with dummy SIGCHLD handler, because after fork(2) it will be automatically reverted to SIG_IGN. Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com r217312: execve(2), not fork(2) resets signal handler to the default value (if it isn't ignored). Correct comment talking about that. Pointed out by: kib Revision Changes Path 1.2.2.10 +8 -0 src/sbin/hastd/hastd.c 1.1.2.6 +5 -0 src/sbin/hastd/hooks.c