On Tue, Aug 31, 2010 at 10:23:04AM +0000, David Xu wrote: > Pawel Jakub Dawidek wrote: > >Author: pjd > >Date: Mon Aug 30 00:06:05 2010 > >New Revision: 211982 > >URL: http://svn.freebsd.org/changeset/base/211982 > > > >Log: > > Use sigtimedwait(2) for signals handling in primary process. > > This fixes various races and eliminates use of pthread* API in signal > > handler. > > > > Pointed out by: kib > > With help from: jilles > > MFC after: 2 weeks > > Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com > > > >Modified: > > head/sbin/hastd/primary.c > > > Note that if you are sigwaiting signals, these signals should be masked, > otherwise, there is a race condition. I have not read the code, maybe > this is not a problem.
I do that, yes. -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am!
pgpxbGe1etfYo.pgp
Description: PGP signature