diff options
| author | Eli Zaretskii | 2016-09-05 19:50:59 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-09-05 19:50:59 +0300 |
| commit | cfaf18a27c262694750400005e882f1cfc7ff2b0 (patch) | |
| tree | cf5b3cb11a3dd8ba29f63d64163f5cdae7bd47b6 /src/w32proc.c | |
| parent | 62e4dc4660cb3b29cfffcad0639e51c7f382ced8 (diff) | |
| download | emacs-cfaf18a27c262694750400005e882f1cfc7ff2b0.tar.gz emacs-cfaf18a27c262694750400005e882f1cfc7ff2b0.zip | |
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/w32proc.c')
| -rw-r--r-- | src/w32proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32proc.c b/src/w32proc.c index 11a121f7c09..217d005a363 100644 --- a/src/w32proc.c +++ b/src/w32proc.c | |||
| @@ -86,9 +86,9 @@ sys_signal (int sig, signal_handler handler) | |||
| 86 | /* SIGCHLD is needed for supporting subprocesses, see sys_kill | 86 | /* SIGCHLD is needed for supporting subprocesses, see sys_kill |
| 87 | below. SIGALRM and SIGPROF are used by setitimer. All the | 87 | below. SIGALRM and SIGPROF are used by setitimer. All the |
| 88 | others are the only ones supported by the MS runtime. */ | 88 | others are the only ones supported by the MS runtime. */ |
| 89 | if (!(sig == SIGCHLD || sig == SIGSEGV || sig == SIGILL | 89 | if (!(sig == SIGINT || sig == SIGSEGV || sig == SIGILL |
| 90 | || sig == SIGFPE || sig == SIGABRT || sig == SIGTERM | 90 | || sig == SIGFPE || sig == SIGABRT || sig == SIGTERM |
| 91 | || sig == SIGALRM || sig == SIGPROF)) | 91 | || sig == SIGCHLD || sig == SIGALRM || sig == SIGPROF)) |
| 92 | { | 92 | { |
| 93 | errno = EINVAL; | 93 | errno = EINVAL; |
| 94 | return SIG_ERR; | 94 | return SIG_ERR; |