From 8c2f1a0b34fc01ac8f41329bce3011392e0d39ac Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 23 Mar 2024 15:29:27 +0100 Subject: [PATCH] initscripts: Silence error messages when testing if a process is running Signed-off-by: Michael Tremer --- src/initscripts/system/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/initscripts/system/functions b/src/initscripts/system/functions index 125aa1dc6..1a9ce8af8 100644 --- a/src/initscripts/system/functions +++ b/src/initscripts/system/functions @@ -369,7 +369,7 @@ pidofproc() for pid in ${lpids} do if [ "${pid}" -ne "$$" -a "${pid}" -ne "${PPID}" ]; then - kill -0 "${pid}" > /dev/null && + kill -0 "${pid}" 2> /dev/null && pidlist="${pidlist} ${pid}" fi -- 2.39.5