Module Name: src
Committed By: christos
Date: Wed Apr 11 18:51:22 UTC 2018
Modified Files:
src/etc: rc.subr
Log Message:
Hide ps error about processes not found (we could be more specific...)
It is superfluous, since we print:
foo not running? (check /var/run/foo/foo.pid).
To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/etc/rc.subr
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/rc.subr
diff -u src/etc/rc.subr:1.101 src/etc/rc.subr:1.102
--- src/etc/rc.subr:1.101 Sun Apr 1 14:26:51 2018
+++ src/etc/rc.subr Wed Apr 11 14:51:22 2018
@@ -1,4 +1,4 @@
-# $NetBSD: rc.subr,v 1.101 2018/04/01 18:26:51 kre Exp $
+# $NetBSD: rc.subr,v 1.102 2018/04/11 18:51:22 christos Exp $
#
# Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -294,10 +294,10 @@ _find_processes()
fi
_proccheck='
- ps -o "pid,args" '"$_psargs"' |
+ ps -o "pid,args" '"$_psargs"' 2>&1 |
while read _npid '"$_fp_args"'; do
case "$_npid" in
- PID)
+ ps:|PID)
continue ;;
esac ; '"$_fp_match"'
echo -n "$_pref$_npid" ;