Don't freeze with unreadable processes
commit2c1b8604946efbcd8ec5dd6c6dda7541ce4fc3c0
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Apr 2015 23:16:58 +0000 (25 16:16 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Apr 2015 23:17:50 +0000 (25 16:17 -0700)
tree41a33e3d526047d2ebe06cabb317e43681274e1f
parent45e571035bffc0db059b1d686830da89df3d2d48
Don't freeze with unreadable processes

Don't freeze if an exiting process can't be read from. (Bug#19860).
This fixes a bug I introduced in
2014-07-08T07:24:07Z@eggert@cs.ucla.edu
"* process.c: Add sanity checks for file descriptors."
Dmitry Gutov did most of the legwork in finding the problem.
* src/process.c (wait_reading_process_output):
Treat non-running processes that can't be read from
the same as other non-running processes.
src/process.c