summaryrefslogtreecommitdiff
path: root/src/conf_post.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-09-05 19:50:59 +0300
committerEli Zaretskii <eliz@gnu.org>2016-09-05 19:50:59 +0300
commitcfaf18a27c262694750400005e882f1cfc7ff2b0 (patch)
treecf5b3cb11a3dd8ba29f63d64163f5cdae7bd47b6 /src/conf_post.h
parent62e4dc4660cb3b29cfffcad0639e51c7f382ced8 (diff)
downloademacs-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.h9
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