unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: lekktu@gmail.com, 12446@debbugs.gnu.org
Subject: bug#12446: port better to POSIX hosts lacking _setjmp
Date: Sat, 15 Sep 2012 13:26:05 -0700	[thread overview]
Message-ID: <5054E45D.8000006@cs.ucla.edu> (raw)
In-Reply-To: <83a9wrtwce.fsf@gnu.org>

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.





      reply	other threads:[~2012-09-15 20:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-14 19:44 bug#12446: port better to POSIX hosts lacking _setjmp Paul Eggert
2012-09-14 20:30 ` Eli Zaretskii
2012-09-14 21:28   ` Paul Eggert
2012-09-15  7:10     ` Paul Eggert
2012-09-15  8:08       ` Eli Zaretskii
2012-09-15  8:46         ` Paul Eggert
2012-09-15  9:41           ` Eli Zaretskii
2012-09-15 10:06             ` Paul Eggert
2012-09-15  7:12     ` Eli Zaretskii
2012-09-15  7:50       ` Paul Eggert
2012-09-15  8:28         ` Eli Zaretskii
2012-09-15  8:55           ` Paul Eggert
2012-09-15  9:44             ` Eli Zaretskii
2012-09-15 10:00               ` Paul Eggert
2012-09-15 10:27                 ` Eli Zaretskii
2012-09-15 20:26                   ` Paul Eggert [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5054E45D.8000006@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=12446@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=lekktu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).