aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/process.c b/src/process.c
index ed0d5fe765b..3334f3258ae 100644
--- a/src/process.c
+++ b/src/process.c
@@ -275,11 +275,11 @@ extern int keyboard_bit_set P_ ((SELECT_TYPE *));
275 275
276static SELECT_TYPE input_wait_mask; 276static SELECT_TYPE input_wait_mask;
277 277
278/* Mask that excludes keyboard input descriptor (s). */ 278/* Mask that excludes keyboard input descriptor(s). */
279 279
280static SELECT_TYPE non_keyboard_wait_mask; 280static SELECT_TYPE non_keyboard_wait_mask;
281 281
282/* Mask that excludes process input descriptor (s). */ 282/* Mask that excludes process input descriptor(s). */
283 283
284static SELECT_TYPE non_process_wait_mask; 284static SELECT_TYPE non_process_wait_mask;
285 285
@@ -6430,20 +6430,10 @@ DEFUN ("process-filter-multibyte-p", Fprocess_filter_multibyte_p,
6430 6430
6431 6431
6432 6432
6433/* The first time this is called, assume keyboard input comes from DESC
6434 instead of from where we used to expect it.
6435 Subsequent calls mean assume input keyboard can come from DESC
6436 in addition to other places. */
6437
6438static int add_keyboard_wait_descriptor_called_flag;
6439
6440void 6433void
6441add_keyboard_wait_descriptor (desc) 6434add_keyboard_wait_descriptor (desc)
6442 int desc; 6435 int desc;
6443{ 6436{
6444 if (! add_keyboard_wait_descriptor_called_flag)
6445 FD_CLR (0, &input_wait_mask);
6446 add_keyboard_wait_descriptor_called_flag = 1;
6447 FD_SET (desc, &input_wait_mask); 6437 FD_SET (desc, &input_wait_mask);
6448 FD_SET (desc, &non_process_wait_mask); 6438 FD_SET (desc, &non_process_wait_mask);
6449 if (desc > max_keyboard_desc) 6439 if (desc > max_keyboard_desc)