]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
initscripts: Silence error messages when testing if a process is running
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 23 Mar 2024 14:29:27 +0000 (15:29 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 2 Jun 2025 19:45:52 +0000 (19:45 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/functions

index 94c9236d3f7182a25eeb5039ba9a7d82f1bf3ea8..85eb3e975b348943f0c3b00e8aec7ee3df56ef2e 100644 (file)
@@ -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