Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Aug 2010 10:23:04 +0000
From:      David Xu <davidxu@freebsd.org>
To:        Pawel Jakub Dawidek <pjd@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r211982 - head/sbin/hastd
Message-ID:  <4C7CD808.3060903@freebsd.org>
In-Reply-To: <201008300006.o7U065Nu078151@svn.freebsd.org>
References:  <201008300006.o7U065Nu078151@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

Regards,
David Xu




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C7CD808.3060903>