We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2179da commit 712a36fCopy full SHA for 712a36f
wes_service/toil_wes.py
@@ -322,7 +322,12 @@ def getstate(self) -> tuple[str, int]:
322
# Process is no longer running, could be completed
323
completed = True
324
# Reap zombie child processes in a non-blocking manner
325
- os.waitpid(pid, os.WNOHANG)
+ # os.WNOHANG still raises an error if no child processes exist
326
+ try:
327
+ os.waitpid(pid, os.WNOHANG)
328
+ except OSError as e:
329
+ if e.errno != errno.ECHILD:
330
+ raise
331
else:
332
raise
333
# If no exception, process is still running
0 commit comments