diff options
| author | Eli Zaretskii | 2010-10-02 10:24:14 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2010-10-02 10:24:14 +0200 |
| commit | 383ebd154fe44e38f38937e8cff3c2abe3fab310 (patch) | |
| tree | b9cacfb7d94e2a14a4c078c8fee829e92fec77e8 /src | |
| parent | 3226d6cacf15156b8760600be0c6b2aac4dac26d (diff) | |
| download | emacs-383ebd154fe44e38f38937e8cff3c2abe3fab310.tar.gz emacs-383ebd154fe44e38f38937e8cff3c2abe3fab310.zip | |
Invoke kill-emacs on SIGINT on Windows as well.
src/emacs.c (main): Remove !WINDOWSNT conditional.
(Fkill_emacs): Don't mention exemption on MS-Windows.
etc/NEWS: Fix the news entry regarding SIGINT in batch mode.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/emacs.c | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 292dc31b5e3..d09c4a1394c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-10-02 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * emacs.c (main): Remove !WINDOWSNT conditional. | ||
| 4 | (Fkill_emacs): Don't mention exemption on MS-Windows. | ||
| 5 | |||
| 1 | 2010-10-02 Glenn Morris <rgm@gnu.org> | 6 | 2010-10-02 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * character.c (Fchar_bytes): Remove obsolete function. | 8 | * character.c (Fchar_bytes): Remove obsolete function. |
diff --git a/src/emacs.c b/src/emacs.c index 7eba690cb8a..41f091bd656 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1240,14 +1240,12 @@ main (int argc, char **argv) | |||
| 1240 | #ifdef SIGSYS | 1240 | #ifdef SIGSYS |
| 1241 | signal (SIGSYS, fatal_error_signal); | 1241 | signal (SIGSYS, fatal_error_signal); |
| 1242 | #endif | 1242 | #endif |
| 1243 | #ifndef WINDOWSNT | ||
| 1244 | /* May need special treatment on MS-Windows. See | 1243 | /* May need special treatment on MS-Windows. See |
| 1245 | http://lists.gnu.org/archive/html/emacs-devel/2010-09/msg01062.html | 1244 | http://lists.gnu.org/archive/html/emacs-devel/2010-09/msg01062.html |
| 1246 | Please update the doc of kill-emacs, kill-emacs-hook, and | 1245 | Please update the doc of kill-emacs, kill-emacs-hook, and |
| 1247 | NEWS if you change this. | 1246 | NEWS if you change this. |
| 1248 | */ | 1247 | */ |
| 1249 | if ( noninteractive ) signal (SIGINT, fatal_error_signal); | 1248 | if (noninteractive) signal (SIGINT, fatal_error_signal); |
| 1250 | #endif | ||
| 1251 | signal (SIGTERM, fatal_error_signal); | 1249 | signal (SIGTERM, fatal_error_signal); |
| 1252 | #ifdef SIGXCPU | 1250 | #ifdef SIGXCPU |
| 1253 | signal (SIGXCPU, fatal_error_signal); | 1251 | signal (SIGXCPU, fatal_error_signal); |
| @@ -1997,7 +1995,7 @@ If ARG is an integer, return ARG as the exit program code. | |||
| 1997 | If ARG is a string, stuff it as keyboard input. | 1995 | If ARG is a string, stuff it as keyboard input. |
| 1998 | 1996 | ||
| 1999 | This function is called upon receipt of the signals SIGTERM | 1997 | This function is called upon receipt of the signals SIGTERM |
| 2000 | or SIGHUP, and (except on MS-Windows) SIGINT in batch mode. | 1998 | or SIGHUP, and upon SIGINT in batch mode. |
| 2001 | 1999 | ||
| 2002 | The value of `kill-emacs-hook', if not void, | 2000 | The value of `kill-emacs-hook', if not void, |
| 2003 | is a list of functions (of no args), | 2001 | is a list of functions (of no args), |