[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Locks and threads
From: |
Neil Jerram |
Subject: |
Re: Locks and threads |
Date: |
Thu, 05 Mar 2009 20:49:48 +0000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Linas Vepstas <address@hidden> writes:
> 2009/3/5 Neil Jerram <address@hidden>:
>>> Yes, it's an unrelated bug. All of the places that raise errors (and
>>> so exit non-locally) should exit the critical section first.
>>
>>> You're absolutely right. I'll leave this part out, and generate a
>>> separate patch for it.
>>
>> Here's the separate patch...
>
> Looks good, except for the test case:
>
> + (pass-if-exception "handler arg is an invalid integer"
> + exception:out-of-range
> + (sigaction SIGINT 51))
>
> whereas my bits/signum.h shows:
>
> #define SIGUNUSED 31
>
> #define _NSIG 65 /* Biggest signal number + 1
> (including real-time signals). */
>
> I presume that in the era of 64-bit CPU's we might
> start seeing new sigs in the 32-64 range. Or maybe
> the RT kernels already do ... ?
Right, but the 51 is the handler arg, for which the only valid integer
values are SIG_DFL (0) and SIG_IGN (1). I'll add a comment to explain
this, and code to make the test fail in case SIG_DFL or SIG_IGN is (on
some platform) 51.
Neil
- Re: Locks and threads, Neil Jerram, 2009/03/04
- Re: Locks and threads, Linas Vepstas, 2009/03/04
- Re: Locks and threads, Neil Jerram, 2009/03/05
- Re: Locks and threads, Linas Vepstas, 2009/03/05
- Re: Locks and threads, Neil Jerram, 2009/03/05
- Re: Locks and threads, Linas Vepstas, 2009/03/05
- Re: Locks and threads, Andy Wingo, 2009/03/06
- Re: Locks and threads, Linas Vepstas, 2009/03/06
- Re: Locks and threads, Ludovic Courtès, 2009/03/06
- Re: Locks and threads, Neil Jerram, 2009/03/08
- Re: Locks and threads, Neil Jerram, 2009/03/25
- Re: Locks and threads, Ludovic Courtès, 2009/03/25
Re: Locks and threads, Ludovic Courtès, 2009/03/05