[patch/rfa]: Make sigsetjmp/siglongjmp thread-aware (was Re: [patch/rfa]: Add _setjmp/_longjmp macros)

Corinna Vinschen vinschen@redhat.com
Tue Jan 15 09:49:00 GMT 2008

On Jan 14 15:39, Jeff Johnston wrote:
> Corinna Vinschen wrote:
>> On Jan 13 17:32, Corinna Vinschen wrote:
>>> SUSv3 defines a _setjmp/_longjmp pair of functions, which are equivalent
>>> to setjmp/longjmp, except that they shall never manipulate the signal
>>> mask:
>> So it looks like the implementation of sigsetjmp/siglongjmp is incorrect
>> for multi-threaded applications.  Below you'll find a new patch for the
>> machine/setjmp.h file.  It uses pthread_sigmask instead of sigprocmask
>> if _POSIX_THREADS is defined, sigprocmask otherwise.  This patch also
>> contains the patch I sent yesterday.
>> Tested on Cygwin.  Ok to apply?
> Yes, go ahead.  Thanks.

Thanks, applied.


Corinna Vinschen
Cygwin Project Co-Leader
Red Hat

More information about the Newlib mailing list