mirror of
https://github.com/logos-storage/logos-storage-local-harness.git
synced 2026-01-02 13:33:11 +00:00
fix: procmon message for removal from tracking followed by kill
This commit is contained in:
parent
a7d12ba1ff
commit
9fcc15f79b
@ -37,9 +37,14 @@ pm_start() {
|
||||
fi
|
||||
|
||||
exit_code=$(cat "${_pm_output}/${pid}.pid")
|
||||
# If the cat fails, this means the file was deleted. This will typically
|
||||
# only happen this way if the process was removed from tracking and then
|
||||
# killed right after.
|
||||
#
|
||||
# shellcheck disable=SC2181
|
||||
if [ $? -ne 0 ]; then
|
||||
echoerr "[procmon] ${pid} died with unknown exit code. Aborting."
|
||||
_pm_halt "halted_no_return"
|
||||
echoerr "[procmon] ${pid} file vanished (removed from tracking?)"
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ -z "$exit_code" ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user