This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]