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.
2 parents c185606 + 2009a25 commit bc2bde5Copy full SHA for bc2bde5
src/psij/executors/local.py
@@ -22,7 +22,6 @@ def _handle_sigchld(signum: int, frame: Optional[FrameType]) -> None:
22
_ProcessReaper.get_instance()._handle_sigchld()
23
24
25
-signal.signal(signal.SIGCHLD, _handle_sigchld)
26
_REAPER_SLEEP_TIME = 0.2
27
28
@@ -121,6 +120,7 @@ def get_instance(cls: Type['_ProcessReaper']) -> '_ProcessReaper':
121
120
if cls._instance is None:
122
cls._instance = _ProcessReaper()
123
cls._instance.start()
+ signal.signal(signal.SIGCHLD, _handle_sigchld)
124
return cls._instance
125
126
def __init__(self) -> None:
0 commit comments