mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
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)
This commit is contained in:
parent
20121a26f0
commit
8099e36b7e
2 changed files with 9 additions and 0 deletions
|
|
@ -1,3 +1,9 @@
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue