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:
1 parent
28ce13d18e
commit
98a8231cef
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user