mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-08-05 02:55:32 +01:00
Remove the buggy legacy getpids() function. Fixes #2472.
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/6.5/BOOK@9041 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
af8f7091eb
commit
af116fca9d
@ -399,7 +399,7 @@ statusproc()
|
||||
# Dependencies: pidof, echo, head
|
||||
#
|
||||
# Todo: Remove dependency on head
|
||||
# This depreciates getpids
|
||||
# This replaces getpids
|
||||
# Test changes to pidof
|
||||
#
|
||||
#*******************************************************************************
|
||||
@ -483,17 +483,6 @@ pidofproc()
|
||||
fi
|
||||
}
|
||||
|
||||
# This will ensure compatibility with previous LFS Bootscripts
|
||||
getpids()
|
||||
{
|
||||
if [ -z "${PIDFILE}" ]; then
|
||||
pidofproc -s -p "${PIDFILE}" $@
|
||||
else
|
||||
pidofproc -s $@
|
||||
fi
|
||||
base="${1##*/}"
|
||||
}
|
||||
|
||||
#*******************************************************************************
|
||||
# Function - loadproc [-f] [-n nicelevel] [-p pidfile] pathname [args]
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user