Subject: bug#12446: port better to POSIX hosts lacking _setjmp

From: Paul Eggert <[email-masked]>
Date: Sat, 15 Sep 2012 13:26:05 -0700

On 09/15/2012 03:27 AM, Eli Zaretskii wrote:
> Yes, but from your description of the "messup" it sounds like _not_
> restoring the signal mask will cause the trouble.

Yes, the point is that the longjmp would get in the way of
Emacs restoring the signal mask, because the longjmp would
set the signal mask in an undesirable way.

> After your changes, we never restore the signal mask

And that's what we want.  On platforms that have _setjmp, Emacs
already uses _setjmp so that the corresponding _longjmp does not
restore the signal mask, which is what we want.  The changes
merely adjust the behavior to do the same thing on platforms
that have sigsetjmp but not _setjmp.