diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/process.c b/src/process.c index 4515b7a2c86..dfb97b8d615 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -130,11 +130,11 @@ Boston, MA 02110-1301, USA. */ | |||
| 130 | #include "charset.h" | 130 | #include "charset.h" |
| 131 | #include "coding.h" | 131 | #include "coding.h" |
| 132 | #include "process.h" | 132 | #include "process.h" |
| 133 | #include "frame.h" | ||
| 133 | #include "termhooks.h" | 134 | #include "termhooks.h" |
| 134 | #include "termopts.h" | 135 | #include "termopts.h" |
| 135 | #include "commands.h" | 136 | #include "commands.h" |
| 136 | #include "keyboard.h" | 137 | #include "keyboard.h" |
| 137 | #include "frame.h" | ||
| 138 | #include "blockinput.h" | 138 | #include "blockinput.h" |
| 139 | #include "dispextern.h" | 139 | #include "dispextern.h" |
| 140 | #include "composite.h" | 140 | #include "composite.h" |
| @@ -3157,6 +3157,10 @@ usage: (make-network-process &rest ARGS) */) | |||
| 3157 | 3157 | ||
| 3158 | open_socket: | 3158 | open_socket: |
| 3159 | 3159 | ||
| 3160 | #ifdef __ultrix__ | ||
| 3161 | /* Previously this was compiled unconditionally, but that seems | ||
| 3162 | unnecessary on modern systems, and `unrequest_sigio' was a noop | ||
| 3163 | under X anyway. --lorentey */ | ||
| 3160 | /* Kernel bugs (on Ultrix at least) cause lossage (not just EINTR) | 3164 | /* Kernel bugs (on Ultrix at least) cause lossage (not just EINTR) |
| 3161 | when connect is interrupted. So let's not let it get interrupted. | 3165 | when connect is interrupted. So let's not let it get interrupted. |
| 3162 | Note we do not turn off polling, because polling is only used | 3166 | Note we do not turn off polling, because polling is only used |
| @@ -3173,6 +3177,7 @@ usage: (make-network-process &rest ARGS) */) | |||
| 3173 | record_unwind_protect (unwind_request_sigio, Qnil); | 3177 | record_unwind_protect (unwind_request_sigio, Qnil); |
| 3174 | unrequest_sigio (); | 3178 | unrequest_sigio (); |
| 3175 | } | 3179 | } |
| 3180 | #endif | ||
| 3176 | 3181 | ||
| 3177 | /* Do this in case we never enter the for-loop below. */ | 3182 | /* Do this in case we never enter the for-loop below. */ |
| 3178 | count1 = SPECPDL_INDEX (); | 3183 | count1 = SPECPDL_INDEX (); |
| @@ -6956,20 +6961,12 @@ DEFUN ("process-filter-multibyte-p", Fprocess_filter_multibyte_p, | |||
| 6956 | 6961 | ||
| 6957 | 6962 | ||
| 6958 | 6963 | ||
| 6959 | /* The first time this is called, assume keyboard input comes from DESC | 6964 | /* Add DESC to the set of keyboard input descriptors. */ |
| 6960 | instead of from where we used to expect it. | ||
| 6961 | Subsequent calls mean assume input keyboard can come from DESC | ||
| 6962 | in addition to other places. */ | ||
| 6963 | |||
| 6964 | static int add_keyboard_wait_descriptor_called_flag; | ||
| 6965 | 6965 | ||
| 6966 | void | 6966 | void |
| 6967 | add_keyboard_wait_descriptor (desc) | 6967 | add_keyboard_wait_descriptor (desc) |
| 6968 | int desc; | 6968 | int desc; |
| 6969 | { | 6969 | { |
| 6970 | if (! add_keyboard_wait_descriptor_called_flag) | ||
| 6971 | FD_CLR (0, &input_wait_mask); | ||
| 6972 | add_keyboard_wait_descriptor_called_flag = 1; | ||
| 6973 | FD_SET (desc, &input_wait_mask); | 6970 | FD_SET (desc, &input_wait_mask); |
| 6974 | FD_SET (desc, &non_process_wait_mask); | 6971 | FD_SET (desc, &non_process_wait_mask); |
| 6975 | if (desc > max_keyboard_desc) | 6972 | if (desc > max_keyboard_desc) |
| @@ -7075,7 +7072,12 @@ init_process () | |||
| 7075 | process_output_skip = 0; | 7072 | process_output_skip = 0; |
| 7076 | #endif | 7073 | #endif |
| 7077 | 7074 | ||
| 7075 | /* Don't do this, it caused infinite select loops. The display | ||
| 7076 | method should call add_keyboard_wait_descriptor on stdin if it | ||
| 7077 | needs that. */ | ||
| 7078 | #if 0 | ||
| 7078 | FD_SET (0, &input_wait_mask); | 7079 | FD_SET (0, &input_wait_mask); |
| 7080 | #endif | ||
| 7079 | 7081 | ||
| 7080 | Vprocess_alist = Qnil; | 7082 | Vprocess_alist = Qnil; |
| 7081 | #ifdef SIGCHLD | 7083 | #ifdef SIGCHLD |