From 8c9a5af5ab93fb71c4fc69864b79d5f8112e1801 Mon Sep 17 00:00:00 2001 From: mtm Date: Wed, 3 Mar 2004 15:28:44 +0000 Subject: Some (most?) processes don't cleanup their pid files when they exit. Sometimes they simply can't (core-dump, for example). So, when searching for a running program send standard error output from ps(1) to never-never land. # This should quite those # ps: kvm_getprocs: No such user # errors. Since ports use a duplicate rc.subr(8) you might # still see this error from ports startup scripts. --- etc/rc.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/rc.subr b/etc/rc.subr index 48aadb9..9830ec8 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -267,7 +267,7 @@ _find_processes() fi _proccheck=' - ps -o "pid,command" '"$_psargs"' | + ps 2>/dev/null -o "pid,command" '"$_psargs"' | while read _npid '"$_fp_args"'; do case "$_npid" in PID) -- cgit v1.1