svn commit: r211982 - head/sbin/hastd
davidxu at freebsd.org
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: http://svn.freebsd.org/changeset/base/211982
> 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
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.
More information about the svn-src-head