* src/process.c (wait_reading_process_output): Avoid a race condition
with SIGIO delivery.
Fixes: debbugs:11536
+2012-11-03 Jim Paris <jim@jtan.com> (tiny change)
+
+ * process.c (wait_reading_process_output): Avoid a race condition
+ with SIGIO delivery (Bug#11536).
+
2012-11-03 Chong Yidong <cyd@gnu.org>
* buffer.c (cursor_type): Untabify docstring.
/* If we woke up due to SIGWINCH, actually change size now. */
do_pending_window_change (0);
+ /* The following optimization fails if SIGIO is received between
+ set_waiting_for_input and select (Bug#11536).
if ((time_limit || nsecs) && nfds == 0 && ! timeout_reduced_for_timers)
- /* We waited the full specified time, so return now. */
break;
+ */
+
if (nfds < 0)
{
if (xerrno == EINTR)