You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sys.stderr.write('Waiting on %d...\n'%(listener.pid,))
83
80
sys.stderr.flush()
84
-
iflen(remainingListeners) ==0:
85
-
break
86
-
time.sleep(1)
87
-
88
-
iflen(remainingListeners) >0:
89
-
sys.stderr.write('After trying to clean up, %d listeners remain.\n'%(len(remainingListeners)))
90
-
forlistenerinremainingListeners:
91
-
try:
92
-
os.kill(listener.pid, signal.SIGKILL)
93
-
except:
94
-
pass
95
-
time.sleep(.1)
96
-
sys.stderr.write('Starting final join\n')
97
-
sys.stderr.flush()
98
-
forlistenerinremainingListeners:
99
-
listener.join()
100
-
sys.stderr.write('Done\n')
101
-
sys.stderr.flush()
102
-
103
-
if'_NT'inplatform.system():
104
-
# Some issue on windows, or at least cygwin on windows, causes an infinite loop in this signal handler when trying to kill the process. CThe only way out is to cause an exception between here and the next call, so provide a function with invalid arguments.
105
-
sys.stderr.write('You can ignore the below exception, it is used to quit on NT\n')
0 commit comments