diff options
| author | Eli Zaretskii | 2012-09-25 13:50:01 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-09-25 13:50:01 +0200 |
| commit | 16b22fef423afedf034460a0f811abf50d0c5f3e (patch) | |
| tree | 42d6127bd2c77a3e8cb34c90276d3c23ca3224d4 /src/ChangeLog | |
| parent | 9c52dd5a2ef4457d3a4bc33720ca5eb766d939a5 (diff) | |
| download | emacs-16b22fef423afedf034460a0f811abf50d0c5f3e.tar.gz emacs-16b22fef423afedf034460a0f811abf50d0c5f3e.zip | |
Fix handling of fatal signals and exceptions on MS-Windows.
src/w32proc.c (sys_signal): Handle all signals defined by the
MS-Windows runtime, not just SIGCHLD. Actually install the signal
handlers for signals supported by Windows. Don't override
term_ntproc as the handler for SIGABRT.
(sigaction): Rewrite to call sys_signal instead of duplicating its
code.
(sys_kill): Improve commentary.
src/w32.c (term_ntproc): Accept (and ignore) one argument, for
consistency with a signature of a signal handler. All callers
changed.
(init_ntproc): Accept an argument DUMPING. If dumping, don't
install term_ntproc as a signal handler for SIGABRT, as that
should be done by the dumped Emacs.
src/w32.h (init_ntproc, term_ntproc): Adjust prototypes.
src/w32select.c (term_w32select): Protect against repeated
invocation by setting clipboard_owner to NULL after calling
DestroyWindow.
src/emacs.c (shut_down_emacs, main): Adapt the calls to init_ntproc
and term_ntproc to their modified signatures.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ca9ca808c77..9d048beeec1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,29 @@ | |||
| 1 | 2012-09-25 Eli Zaretskii <eliz@gnu.org> | 1 | 2012-09-25 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * w32proc.c (sys_signal): Handle all signals defined by the | ||
| 4 | MS-Windows runtime, not just SIGCHLD. Actually install the signal | ||
| 5 | handlers for signals supported by Windows. Don't override | ||
| 6 | term_ntproc as the handler for SIGABRT. | ||
| 7 | (sigaction): Rewrite to call sys_signal instead of duplicating its | ||
| 8 | code. | ||
| 9 | (sys_kill): Improve commentary. | ||
| 10 | |||
| 11 | * w32.c (term_ntproc): Accept (and ignore) one argument, for | ||
| 12 | consistency with a signature of a signal handler. All callers | ||
| 13 | changed. | ||
| 14 | (init_ntproc): Accept an argument DUMPING. If dumping, don't | ||
| 15 | install term_ntproc as a signal handler for SIGABRT, as that | ||
| 16 | should be done by the dumped Emacs. | ||
| 17 | |||
| 18 | * w32.h (init_ntproc, term_ntproc): Adjust prototypes. | ||
| 19 | |||
| 20 | * w32select.c (term_w32select): Protect against repeated | ||
| 21 | invocation by setting clipboard_owner to NULL after calling | ||
| 22 | DestroyWindow. | ||
| 23 | |||
| 24 | * emacs.c (shut_down_emacs, main): Adapt the calls to init_ntproc | ||
| 25 | and term_ntproc to their modified signatures. | ||
| 26 | |||
| 3 | * character.c (char_string, string_char): Remove calls to | 27 | * character.c (char_string, string_char): Remove calls to |
| 4 | MAYBE_UNIFY_CHAR. See the discussion starting at | 28 | MAYBE_UNIFY_CHAR. See the discussion starting at |
| 5 | http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00433.html | 29 | http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00433.html |