base/dracut-lib:pidof() turn off debugging
parent
611c895772
commit
ad8638e04e
|
@ -991,13 +991,17 @@ wait_for_loginit()
|
|||
# pidof version for root
|
||||
if ! command -v pidof >/dev/null 2>/dev/null; then
|
||||
pidof() {
|
||||
debug_off
|
||||
local _cmd
|
||||
local _exe
|
||||
local _rl
|
||||
local _ret=1
|
||||
local i
|
||||
_cmd="$1"
|
||||
[ -z "$_cmd" ] && return 1
|
||||
if [ -z "$_cmd" ]; then
|
||||
debug_on
|
||||
return 1
|
||||
fi
|
||||
_exe=$(type -P "$1")
|
||||
for i in /proc/*/exe; do
|
||||
[ -e "$i" ] || continue
|
||||
|
@ -1011,6 +1015,7 @@ if ! command -v pidof >/dev/null 2>/dev/null; then
|
|||
echo ${i##/proc/}
|
||||
_ret=0
|
||||
done
|
||||
debug_on
|
||||
return $_ret
|
||||
}
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue