svn commit: r211982 - head/sbin/hastd

David Xu davidxu at
Tue Aug 31 02:23:06 UTC 2010

Pawel Jakub Dawidek wrote:
> Author: pjd
> Date: Mon Aug 30 00:06:05 2010
> New Revision: 211982
> URL:
> 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.
> 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.

David Xu

More information about the svn-src-all mailing list