svn commit: r211982 - head/sbin/hastd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Tue Aug 31 06:24:35 UTC 2010
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
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20100831/d96a8b9f/attachment.pgp
More information about the svn-src-head
mailing list