mirror of
https://github.com/logos-storage/logos-storage-local-harness.git
synced 2026-01-04 06:23:06 +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
|
fi
|
||||||
|
|
||||||
exit_code=$(cat "${_pm_output}/${pid}.pid")
|
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
|
if [ $? -ne 0 ]; then
|
||||||
echoerr "[procmon] ${pid} died with unknown exit code. Aborting."
|
echoerr "[procmon] ${pid} file vanished (removed from tracking?)"
|
||||||
_pm_halt "halted_no_return"
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$exit_code" ]; then
|
if [ -z "$exit_code" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user