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 01:55:14 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0

On 09/15/2012 01:28 AM, Eli Zaretskii wrote:
> So what was the rationale of turning away from _setjmp

Some POSIXish hosts lack _setjmp, but have sigsetjmp,
and their longjmp implementations munge the signal masks.

>> > Messups are trickier, because they involve rare race conditions.
>> > They can occur if Emacs or a system call has set the signal mask to X,
>> > but a longjump unexpectedly changes it to Y, where Y is not equal to X.
> Why is that a messup?

Because Emacs then continues with the wrong sigmask, which can
cause signals to be blocked when they shouldn't be.





reply via email to

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