aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c
index 4449493a2b6..ab30698b9e8 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4303,7 +4303,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
4303 time_limit = 0; 4303 time_limit = 0;
4304 nsecs = -1; 4304 nsecs = -1;
4305 } 4305 }
4306 else if (TYPE_MAXIMUM (time_t) < time_limit) 4306 else if (time_limit > TYPE_MAXIMUM (time_t))
4307 time_limit = TYPE_MAXIMUM (time_t); 4307 time_limit = TYPE_MAXIMUM (time_t);
4308 4308
4309 /* Since we may need to wait several times, 4309 /* Since we may need to wait several times,
@@ -4580,7 +4580,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
4580 continue; 4580 continue;
4581 FD_CLR (channel, &Available); 4581 FD_CLR (channel, &Available);
4582 XPROCESS (proc)->read_output_skip = 0; 4582 XPROCESS (proc)->read_output_skip = 0;
4583 if (XPROCESS (proc)->read_output_delay < nsecs) 4583 if (nsecs > XPROCESS (proc)->read_output_delay)
4584 nsecs = XPROCESS (proc)->read_output_delay; 4584 nsecs = XPROCESS (proc)->read_output_delay;
4585 } 4585 }
4586 } 4586 }
@@ -4696,7 +4696,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
4696 if (timers_run != old_timers_run 4696 if (timers_run != old_timers_run
4697 && waiting_for_user_input_p == -1 4697 && waiting_for_user_input_p == -1
4698 && (old_buffer != current_buffer 4698 && (old_buffer != current_buffer
4699 || !EQ (old_window, selected_window))) 4699 || !EQ (old_window, selected_window)))
4700 record_asynch_buffer_change (); 4700 record_asynch_buffer_change ();
4701 4701
4702 if (leave) 4702 if (leave)