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.
This commit is contained in:
Bob Lantz
2015-01-23 16:43:49 -08:00
parent 28ce13d18e
commit 98a8231cef
+1 -1
View File
@@ -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: