We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acd5a8b commit 994560cCopy full SHA for 994560c
1 file changed
uvloop/handles/process.pyx
@@ -91,9 +91,10 @@ cdef class UVProcess(UVHandle):
91
self._restore_signals = restore_signals
92
93
loop.active_process_handler = self
94
+ __forking = 1
95
+ __forking_loop = loop
96
+
97
if not system.PLATFORM_IS_WINDOWS:
- __forking = 1
- __forking_loop = loop
98
system.setForkHandler(<system.OnForkHandler>&__get_fork_handler)
99
100
PyOS_BeforeFork()
@@ -102,9 +103,10 @@ cdef class UVProcess(UVHandle):
102
103
<uv.uv_process_t*>self._handle,
104
&self.options)
105
106
+ __forking = 0
107
+ __forking_loop = None
108
- __forking = 0
- __forking_loop = None
109
110
system.resetForkHandler()
111
112
PyOS_AfterFork_Parent()
0 commit comments