An additional race condition in shutdown-- if the signal is sent to all children

This commit is contained in:
Thomas Jackson 2014-09-16 13:49:14 -07:00
parent a04f104465
commit 004dd5d9db

View File

@ -205,4 +205,8 @@ class ProcessManager(object):
for pid, p_map in self._process_map.items():
p_map['Process'].terminate()
p_map['Process'].join()
# This is a race condition if a signal was passed to all children
try:
del self._process_map[pid]
except KeyError:
pass