[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r109997: Fix silent exit upon asserti
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r109997: Fix silent exit upon assertion violation on MS-Windows. |
Date: |
Wed, 12 Sep 2012 22:14:02 +0300 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 109997
fixes bug: http://debbugs.gnu.org/12426
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Wed 2012-09-12 22:14:02 +0300
message:
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)
modified:
src/ChangeLog
src/w32proc.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2012-09-12 14:10:42 +0000
+++ b/src/ChangeLog 2012-09-12 19:14:02 +0000
@@ -1,3 +1,9 @@
+2012-09-12 Eli Zaretskii <address@hidden>
+
+ * 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 <address@hidden>
* image.c (jpeg_memory_src): Don't assume string len fits in unsigned.
=== modified file 'src/w32proc.c'
--- a/src/w32proc.c 2012-09-07 08:20:07 +0000
+++ b/src/w32proc.c 2012-09-12 19:14:02 +0000
@@ -1429,6 +1429,9 @@
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)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r109997: Fix silent exit upon assertion violation on MS-Windows.,
Eli Zaretskii <=