Commit df34ed8c authored by Philipp Stephani's avatar Philipp Stephani

Don't crash if no asynchronous process has been created yet.

* src/process.c (wait_reading_process_output): Allow
child_signal_read_fd < 0.
parent 8f0ce42d
Pipeline #8777 failed with stages
in 32 minutes and 12 seconds
......@@ -5413,9 +5413,9 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
an asynchronous process. Otherwise this might deadlock if we
receive a SIGCHLD during `pselect'. */
int child_fd = child_signal_read_fd;
eassert (0 <= child_fd);
eassert (child_fd < FD_SETSIZE);
FD_SET (child_fd, &Available);
if (0 <= child_fd)
FD_SET (child_fd, &Available);
/* If frame size has changed or the window is newly mapped,
redisplay now, before we start to wait. There is a race
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment