mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
An additional race condition in shutdown-- if the signal is sent to all children
This commit is contained in:
parent
a04f104465
commit
004dd5d9db
@ -205,4 +205,8 @@ class ProcessManager(object):
|
||||
for pid, p_map in self._process_map.items():
|
||||
p_map['Process'].terminate()
|
||||
p_map['Process'].join()
|
||||
del self._process_map[pid]
|
||||
# This is a race condition if a signal was passed to all children
|
||||
try:
|
||||
del self._process_map[pid]
|
||||
except KeyError:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user