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


Message #49 received at 12446 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: lekktu <at> gmail.com, 12446 <at> debbugs.gnu.org
Subject: Re: port better to POSIX hosts lacking _setjmp
Date: Sat, 15 Sep 2012 13:27:13 +0300
> Date: Sat, 15 Sep 2012 03:00:50 -0700
> From: Paul Eggert <eggert <at> cs.ucla.edu>
> CC: 12446 <at> debbugs.gnu.org, lekktu <at> gmail.com
> 
> > 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.

Yes, but from your description of the "messup" it sounds like _not_
restoring the signal mask will cause the trouble.  After your changes,
we never restore the signal mask, because sigsetjmp is called with its
second argument zero.




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.