From 6dd9e54ab836188be81a99c7bfd6ca47a1165510 Mon Sep 17 00:00:00 2001 From: Serge Tupchii Date: Fri, 8 Sep 2023 13:43:12 +0300 Subject: [PATCH] fix(bin/emqx): remove `ps` `-e` opt, as it lists all processes regardless of `-p ` --- bin/emqx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/emqx b/bin/emqx index feed46f62..a51ffcfbb 100755 --- a/bin/emqx +++ b/bin/emqx @@ -812,7 +812,7 @@ is_down() { if ps -p "$PID" >/dev/null; then # still around # shellcheck disable=SC2009 # this grep pattern is not a part of the program names - if ps -efp "$PID" | $GREP -q 'defunct'; then + if ps -fp "$PID" | $GREP -q 'defunct'; then # zombie state, print parent pid parent="$(ps -o ppid= -p "$PID" | tr -d ' ')" logwarn "$PID is marked , parent: $(ps -p "$parent")"