GNU bug report logs - #12446
port better to POSIX hosts lacking _setjmp

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Fri, 14 Sep 2012 19:47:01 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: lekktu <at> gmail.com, 12446 <at> debbugs.gnu.org
Subject: bug#12446: port better to POSIX hosts lacking _setjmp
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.




This bug report was last modified 12 years and 255 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.