From 29c49b9abcf039a4db7e876e991033d0635898f1 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 94c9236d3..85eb3e975 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