diff options
author | Eli Zaretskii <eliz@gnu.org> | 2016-12-12 19:08:21 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-12-12 19:08:21 +0200 |
commit | 825f4dd42f0f656bcb4536546b33fe8e54756468 (patch) | |
tree | 267e32c802f96d0a2e32b82f35fbb924b6656dd5 /test/src/regex-tests.el | |
parent | a416e1d6c111527205f3583c8d201bf95af6fa20 (diff) | |
download | emacs-825f4dd42f0f656bcb4536546b33fe8e54756468.tar.gz emacs-825f4dd42f0f656bcb4536546b33fe8e54756468.tar.bz2 emacs-825f4dd42f0f656bcb4536546b33fe8e54756468.zip |
Avoid crashing if a new thread is signaled right away
* src/thread.c (post_acquire_global_lock): Don't raise the pending
signal if the thread's handlers were not yet set up, as that will
cause Emacs to exit with a fatal error. This can happen if a
thread is signaled as soon as make-thread returns, before the new
thread had an opportunity to acquire the global lock, set up the
handlers, and call the thread function.
* test/src/thread-tests.el (thread-signal-early): New test.
Diffstat (limited to 'test/src/regex-tests.el')
0 files changed, 0 insertions, 0 deletions