Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Prev Previous commit
Next Next commit
ENH more robust sem_tracker.ensure_running
  • Loading branch information
tomMoral committed Apr 24, 2019
commit ada8a9d4ec8e51728c65236e7f17a5739103098c
2 changes: 1 addition & 1 deletion Lib/multiprocessing/semaphore_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _check_alive(self):
# We cannot use send here as it calls ensure_running, creating
# a cycle.
os.write(self._fd, b'PROBE:0\n')
except BrokenPipeError:
except OSError:
return False
else:
return True
Expand Down