mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-02 08:42:48 +00:00
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.
This commit is contained in:
parent
30c360afba
commit
52c9f8bc70
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126556
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user