diff options
| author | Enami Tsugutomo | 2011-10-25 12:27:47 +0800 |
|---|---|---|
| committer | Chong Yidong | 2011-10-25 12:27:47 +0800 |
| commit | e112cc3727670af0514df84f372e4d640d52ed20 (patch) | |
| tree | cd2feb1b9b3f1fa3aa554de27c3966024bc6570a /src | |
| parent | df6d30f325a57fe0bc60025f391a41e27794c8f5 (diff) | |
| download | emacs-e112cc3727670af0514df84f372e4d640d52ed20.tar.gz emacs-e112cc3727670af0514df84f372e4d640d52ed20.zip | |
* sysdep.c (init_sys_modes): Fix the check for the controlling terminal.
Fixes: debbugs:6649
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/sysdep.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3f9b5beeab6..cee48bd1731 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-10-25 Enami Tsugutomo <tsugutomo.enami@jp.sony.com> | ||
| 2 | |||
| 3 | * sysdep.c (init_sys_modes): Fix the check for the controlling | ||
| 4 | terminal (Bug#6649). | ||
| 5 | |||
| 1 | 2011-10-20 Eli Zaretskii <eliz@gnu.org> | 6 | 2011-10-20 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * dispextern.h (struct bidi_it): New member next_en_type. | 8 | * dispextern.h (struct bidi_it): New member next_en_type. |
diff --git a/src/sysdep.c b/src/sysdep.c index b0d5a1abbe3..d666f8dbb79 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -854,6 +854,7 @@ void | |||
| 854 | init_sys_modes (struct tty_display_info *tty_out) | 854 | init_sys_modes (struct tty_display_info *tty_out) |
| 855 | { | 855 | { |
| 856 | struct emacs_tty tty; | 856 | struct emacs_tty tty; |
| 857 | Lisp_Object terminal; | ||
| 857 | 858 | ||
| 858 | Vtty_erase_char = Qnil; | 859 | Vtty_erase_char = Qnil; |
| 859 | 860 | ||
| @@ -907,7 +908,9 @@ init_sys_modes (struct tty_display_info *tty_out) | |||
| 907 | tty.main.c_cflag &= ~PARENB;/* Don't check parity */ | 908 | tty.main.c_cflag &= ~PARENB;/* Don't check parity */ |
| 908 | } | 909 | } |
| 909 | #endif | 910 | #endif |
| 910 | if (tty_out->input == stdin) | 911 | |
| 912 | XSETTERMINAL(terminal, tty_out->terminal); | ||
| 913 | if (!NILP (Fcontrolling_tty_p (terminal))) | ||
| 911 | { | 914 | { |
| 912 | tty.main.c_cc[VINTR] = quit_char; /* C-g (usually) gives SIGINT */ | 915 | tty.main.c_cc[VINTR] = quit_char; /* C-g (usually) gives SIGINT */ |
| 913 | /* Set up C-g for both SIGQUIT and SIGINT. | 916 | /* Set up C-g for both SIGQUIT and SIGINT. |