bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9010: sigprocmask -> pthread_sigmask for Emacs


From: Jan Djärv
Subject: bug#9010: sigprocmask -> pthread_sigmask for Emacs
Date: Thu, 07 Jul 2011 10:01:09 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]