base/dracut-lib:pidof() turn off debugging

master
Harald Hoyer 2014-07-22 11:51:08 +02:00
parent 611c895772
commit ad8638e04e
1 changed files with 6 additions and 1 deletions

View File

@ -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