Mercurial > emacs
comparison src/sysdep.c @ 83454:845a93c68e9a
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
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Wed, 11 Jan 2006 14:51:51 +0000 |
parents | 76396de7f50a |
children | b98066f4aa10 |
comparison
equal
deleted
inserted
replaced
83453:55e22205ba88 | 83454:845a93c68e9a |
---|---|
1035 /* XXX Yeah, but you need it for SIGIO, don't you? */ | 1035 /* XXX Yeah, but you need it for SIGIO, don't you? */ |
1036 | 1036 |
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)); |
1049 #endif | 1045 #endif |
1050 sigunblock (sigmask (SIGIO)); | 1046 sigunblock (sigmask (SIGIO)); |
1053 } | 1049 } |
1054 | 1050 |
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? */ | |
1060 #if 0 | |
1061 if (noninteractive || read_socket_hook) | |
1062 return; | 1055 return; |
1063 #endif | 1056 |
1064 | 1057 #if 0 /* XXX What's wrong with blocking SIGIO under X? */ |
1058 if (x_display_list) | |
1059 return; | |
1060 #endif | |
1061 | |
1065 #ifdef SIGWINCH | 1062 #ifdef SIGWINCH |
1066 sigblock (sigmask (SIGWINCH)); | 1063 sigblock (sigmask (SIGWINCH)); |
1067 #endif | 1064 #endif |
1068 sigblock (sigmask (SIGIO)); | 1065 sigblock (sigmask (SIGIO)); |
1069 interrupts_deferred = 1; | 1066 interrupts_deferred = 1; |