Skip to content
Snippets Groups Projects
Commit 98a8231c authored by Bob Lantz's avatar Bob Lantz
Browse files

Exit poll loop on POLLHUP or anything unexpected

In my opinion, we really shouldn't even get POLLHUP, but
we do. In case we get anything else odd, quite polling on
that fd.
parent 28ce13d1
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ def errRun( *cmd, **kwargs ):
err += data
if data == '':
errDone = True
elif event & POLLHUP:
else: # POLLHUP or something unexpected
if f == popen.stdout:
outDone = True
elif f == popen.stderr:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment