From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 9010@debbugs.gnu.org
Subject: bug#9010: sigprocmask -> pthread_sigmask for Emacs
Date: Thu, 07 Jul 2011 10:01:09 +0200 [thread overview]
Message-ID: <4E1567C5.2070504@swipnet.se> (raw)
In-Reply-To: <4E14A53C.4060709@cs.ucla.edu>
Hello.
Paul Eggert skrev 2011-07-06 20.11:
> Currently Emacs uses sigprocmask to alter signal masks, but
> sigprocmask is portable only for single-threaded applications, and
> Emacs can be multithreaded when it uses GTK (and is likely to
> become more multithreaded in the future). I've seen bug reports
> about this for other apps, in which misuse of sigprocmask (where
> pthread_sigmask should be used) causes segfaults and the like. I
> haven't reproduced the problem with GNU Emacs but any such bugs
> would quite possibly be random crashes that don't seem to be
> related to sigprocmask.
>
This looks ok, as long as all signal handlers have SIGNAL_THREAD_CHECK at the
beginning (they currently do).
Jan D.
next prev parent reply other threads:[~2011-07-07 8:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-06 18:11 bug#9010: sigprocmask -> pthread_sigmask for Emacs Paul Eggert
2011-07-07 8:01 ` Jan Djärv [this message]
2011-07-08 7:17 ` Eli Zaretskii
2011-07-08 9:58 ` Paul Eggert
2011-07-08 10:16 ` Eli Zaretskii
2011-07-08 20:42 ` Paul Eggert
2011-07-08 23:29 ` Juanma Barranquero
2011-07-08 23:32 ` Paul Eggert
2011-07-09 0:13 ` Juanma Barranquero
2011-07-09 7:02 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E1567C5.2070504@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=9010@debbugs.gnu.org \
--cc=eggert@cs.ucla.edu \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.