diff options
author | Eli Zaretskii <eliz@gnu.org> | 2016-09-05 19:50:59 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-09-05 19:50:59 +0300 |
commit | cfaf18a27c262694750400005e882f1cfc7ff2b0 (patch) | |
tree | cf5b3cb11a3dd8ba29f63d64163f5cdae7bd47b6 /src/conf_post.h | |
parent | 62e4dc4660cb3b29cfffcad0639e51c7f382ced8 (diff) | |
download | emacs-cfaf18a27c262694750400005e882f1cfc7ff2b0.tar.gz |
Treat SIGINT correctly in GUI sessions on MS-Windows
* src/w32proc.c (sys_signal): Don't reject SIGINT, as it is
supported by MS runtime.
* src/term.c (DEV_TTY): Move from here ...
* src/conf_post.h (DEV_TTY): ... to here. Separate definitions
for WINDOWSNT and for the rest.
* src/keyboard.c (handle_interrupt_signal): Use DEV_TTY instead of
a literal "/dev/tty".
* etc/NEWS: Mention the behavior change.
Diffstat (limited to 'src/conf_post.h')
-rw-r--r-- | src/conf_post.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/conf_post.h b/src/conf_post.h index 865d0183a57..bc8b0964882 100644 --- a/src/conf_post.h +++ b/src/conf_post.h @@ -140,6 +140,10 @@ typedef bool bool_bf; #undef HAVE_RINT #endif /* HPUX */ +#ifdef WINDOWSNT +# define DEV_TTY "CONOUT$" +#endif + #ifdef MSDOS #ifndef __DJGPP__ You lose; /* Emacs for DOS must be compiled with DJGPP */ @@ -242,6 +246,11 @@ extern int emacs_setenv_TZ (char const *); #include <string.h> #include <stdlib.h> +#ifndef DEV_TTY +# define DEV_TTY "/dev/tty" +#endif + + #if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */ #define NO_INLINE __attribute__((noinline)) #else |