Date: Mon, 21 Mar 2011 15:29:20 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/hastd hastd.c Message-ID: <201103211529.p2LFTgT4047126@repoman.freebsd.org>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103211529.p2LFTgT4047126>
