From owner-cvs-src-old@FreeBSD.ORG Mon Mar 21 15:29:42 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 5FB881065680 for ; Mon, 21 Mar 2011 15:29:42 +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 515108FC19 for ; Mon, 21 Mar 2011 15:29:42 +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 p2LFTggn047127 for ; Mon, 21 Mar 2011 15:29:42 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p2LFTgT4047126 for cvs-src-old@freebsd.org; Mon, 21 Mar 2011 15:29:42 GMT (envelope-from pjd@repoman.freebsd.org) Message-Id: <201103211529.p2LFTgT4047126@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to pjd@repoman.freebsd.org using -f From: Pawel Jakub Dawidek Date: Mon, 21 Mar 2011 15:29:20 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/hastd hastd.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: Mon, 21 Mar 2011 15:29:42 -0000 pjd 2011-03-21 15:29:20 UTC FreeBSD src repository Modified files: sbin/hastd hastd.c Log: SVN rev 219837 on 2011-03-21 15:29:20Z by pjd Before handling any events on descriptors check signals so we can update our info about worker processes if any of them was terminated in the meantime. This fixes the problem with 'hastctl status' running from a hook called on split-brain: 1. Secondary calls a hooks and terminates. 2. Hook asks for resource status via 'hastctl status'. 3. The main hastd handles the status request by sending it to the secondary worker who is already dead, but because signals weren't checked yet he doesn't know that and we get EPIPE. MFC after: 1 week Revision Changes Path 1.45 +43 -28 src/sbin/hastd/hastd.c