summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2004-03-03 15:28:44 +0000
committermtm <mtm@FreeBSD.org>2004-03-03 15:28:44 +0000
commit8c9a5af5ab93fb71c4fc69864b79d5f8112e1801 (patch)
treebebe11eff854ced795a964204b2a646a5084e335 /etc
parent72747959d214b08db31f33611980398246240cc3 (diff)
downloadFreeBSD-src-8c9a5af5ab93fb71c4fc69864b79d5f8112e1801.zip
FreeBSD-src-8c9a5af5ab93fb71c4fc69864b79d5f8112e1801.tar.gz
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.subr2
1 files changed, 1 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud