don't wait for stdin to close
This commit is contained in:
parent
6bb276b509
commit
22000ec4c0
@ -484,7 +484,7 @@ def main():
|
||||
proc.stderr,
|
||||
select.POLLIN | select.POLLPRI | select.POLLHUP | select.POLLERR,
|
||||
)
|
||||
pollc = 3
|
||||
pollc = 2
|
||||
# logger.debug("First poll...")
|
||||
events = poll.poll()
|
||||
# logger.debug("Done, %d event(s)", len(events))
|
||||
@ -569,10 +569,11 @@ def main():
|
||||
logger.debug("STDIN closed")
|
||||
if rfd == stdout_fd:
|
||||
logger.debug("STDOUT closed")
|
||||
pollc -= 1
|
||||
if rfd == stderr_fd:
|
||||
logger.debug("STDERR closed")
|
||||
pollc -= 1
|
||||
poll.unregister(rfd)
|
||||
pollc -= 1
|
||||
|
||||
if pollc > 0:
|
||||
# logger.debug("Poll...")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user