This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Proposed fix for cancellation bug found by Neal Ferguson.
- To: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Subject: Re: Proposed fix for cancellation bug found by Neal Ferguson.
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 26 Sep 2000 17:05:59 -0700
- Cc: libc-alpha at sources dot redhat dot com
- References: <Pine.LNX.4.10.10009261347470.13641-100000@ashi.FootPrints.net>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Kaz Kylheku <kaz@ashi.footprints.net> writes:
> /* Only store a non-null peif if the thread has cancellation enabled.
> Otherwise pthread_cancel will unconditionally call the extricate handler,
> and restart the thread giving rise to forbidden spurious wakeups. */
> [...]
> How is that?
I think it is only problematic if the user does something forbidden
(like setting the cancelation state in an interrupt handler). In this
case a waiting thread (which would have set a extrication handler
before) sets none, waits, the signal handler makes the thread
cancelable, and another thread comes by and cancels it without the
extrication handler being used. But I can live with that.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------