Commit 8099e36b authored by Eli Zaretskii's avatar Eli Zaretskii

Fix silent exit upon assertion violation on MS-Windows.

 src/w32proc.c (sys_kill): If PID is our process ID and the signal is
 SIGABRT, call emacs_abort.  Avoids silently exiting upon assertion
 violation.  (Bug#12426)
parent 20121a26
2012-09-12 Eli Zaretskii <eliz@gnu.org>
* w32proc.c (sys_kill): If PID is our process ID and the signal is
SIGABRT, call emacs_abort. Avoids silently exiting upon assertion
violation. (Bug#12426)
2012-09-12 Paul Eggert <eggert@cs.ucla.edu>
* image.c (jpeg_memory_src): Don't assume string len fits in unsigned.
......
......@@ -1429,6 +1429,9 @@ sys_kill (int pid, int sig)
int need_to_free = 0;
int rc = 0;
if (pid == getpid () && sig == SIGABRT)
emacs_abort ();
/* Only handle signals that will result in the process dying */
if (sig != SIGINT && sig != SIGKILL && sig != SIGQUIT && sig != SIGHUP)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment