diff options
| author | Karoly Lorentey | 2006-01-11 14:51:51 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2006-01-11 14:51:51 +0000 |
| commit | 6bbba5a627cf59d22d9b21f8f7405e43af2e94cf (patch) | |
| tree | f7fa2589b087667c561e7e8d9d5e3de5a8d702fb /src/sysdep.c | |
| parent | a8bf7299ee74781dd485c33c5eac20aee0f0ebef (diff) | |
| download | emacs-6bbba5a627cf59d22d9b21f8f7405e43af2e94cf.tar.gz emacs-6bbba5a627cf59d22d9b21f8f7405e43af2e94cf.zip | |
Fix C-g during `make-network-process'. (Reported by Mark Plaksin.)
* src/process.c (Fmake_network_process): Don't unrequest_sigio on modern
systems.
* src/keyboard.c (Fset_input_interrupt_mode): Cosmetic change.
* src/sysdep.c (request_sigio): Make it a no-op if noninteractive.
(unrequest_sigio): Make it a no-op if noninteractive.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-494
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 956323f3a3b..25db4c73080 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -1037,12 +1037,8 @@ reset_sigio (fd) | |||
| 1037 | void | 1037 | void |
| 1038 | request_sigio () | 1038 | request_sigio () |
| 1039 | { | 1039 | { |
| 1040 | /* XXX read_socket_hook is not global anymore. Is blocking SIGIO | 1040 | if (noninteractive) |
| 1041 | bad under X? */ | ||
| 1042 | #if 0 | ||
| 1043 | if (noninteractive || read_socket_hook) | ||
| 1044 | return; | 1041 | return; |
| 1045 | #endif | ||
| 1046 | 1042 | ||
| 1047 | #ifdef SIGWINCH | 1043 | #ifdef SIGWINCH |
| 1048 | sigunblock (sigmask (SIGWINCH)); | 1044 | sigunblock (sigmask (SIGWINCH)); |
| @@ -1055,13 +1051,14 @@ request_sigio () | |||
| 1055 | void | 1051 | void |
| 1056 | unrequest_sigio (void) | 1052 | unrequest_sigio (void) |
| 1057 | { | 1053 | { |
| 1058 | /* XXX read_socket_hook is not global anymore. Is blocking SIGIO | 1054 | if (noninteractive) |
| 1059 | bad under X? */ | 1055 | return; |
| 1060 | #if 0 | 1056 | |
| 1061 | if (noninteractive || read_socket_hook) | 1057 | #if 0 /* XXX What's wrong with blocking SIGIO under X? */ |
| 1058 | if (x_display_list) | ||
| 1062 | return; | 1059 | return; |
| 1063 | #endif | 1060 | #endif |
| 1064 | 1061 | ||
| 1065 | #ifdef SIGWINCH | 1062 | #ifdef SIGWINCH |
| 1066 | sigblock (sigmask (SIGWINCH)); | 1063 | sigblock (sigmask (SIGWINCH)); |
| 1067 | #endif | 1064 | #endif |