mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add warning messages to help determine why pids do not exist
This commit is contained in:
parent
406d3829f4
commit
64d9752e62
1 changed files with 10 additions and 2 deletions
|
@ -815,9 +815,17 @@ class SignalHandlingMultiprocessingProcess(MultiprocessingProcess):
|
|||
if child.is_running():
|
||||
child.terminate()
|
||||
except psutil.NoSuchProcess:
|
||||
pass
|
||||
log.warn(
|
||||
'Unable to kill child of process %d, it does '
|
||||
'not exist. My pid is %d',
|
||||
self.pid, os.getpid()
|
||||
)
|
||||
except psutil.NoSuchProcess:
|
||||
pass
|
||||
log.warn(
|
||||
'Unable to kill children of process %d, it does not exist.'
|
||||
'My pid is %d',
|
||||
self.pid, os.getpid()
|
||||
)
|
||||
sys.exit(salt.defaults.exitcodes.EX_OK)
|
||||
|
||||
def start(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue