We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a90356 commit 5c7c625Copy full SHA for 5c7c625
1 file changed
Exscript/util/sigint.py
@@ -56,12 +56,10 @@ def __init__(self):
56
try:
57
self.child = os.fork()
58
except AttributeError: # platforms that don't have os.fork
59
- pass
60
- except RuntimeError:
61
- pass # prevent "not holding the import lock" on some systems.
62
- if self.child == 0:
63
- return
64
- else:
+ self.child = 0
+ except RuntimeError: # prevent "not holding the import lock" on some systems
+ if self.child:
65
self.watch()
66
67
def watch(self):
0 commit comments