bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12446: port better to POSIX hosts lacking _setjmp


From: Paul Eggert
Subject: bug#12446: port better to POSIX hosts lacking _setjmp
Date: Sat, 15 Sep 2012 03:00:50 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0

On 09/15/2012 02:44 AM, Eli Zaretskii wrote:
>> Some POSIXish hosts lack _setjmp, but have sigsetjmp,
> 
> How did those hosts succeed to compile Emacs before your changes, then?

They used setjmp, which meant they were slower and
had some (rare) race conditions that caused problems.

> longjmp restores the environment, including the signal mask, to what
> it was when setjmp was called.

No, sometimes it does, sometimes it doesn't.
It depends on the platform.  If you want the signal mask
restored portably, you have to do it some other way, by using
siglongjmp or pthread_sigmask or something like that.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]