Add warning messages to help determine why pids do not exist

This commit is contained in:
Daniel A. Wozniak 2019-07-31 15:27:55 -07:00
parent 406d3829f4
commit 64d9752e62
No known key found for this signature in database
GPG key ID: 166B9D2C06C82D61

View file

@ -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):