﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
2472	getpids() bug in lfs/init.d/functions, as of lfs-bootscripts-20090523	Jeremy Henty	lfs-book@…	"The definition of getpids() is:

getpids()
{
        if [ -z ""${PIDFILE}"" ]; then
                pidofproc -s -p ""${PIDFILE}"" $@
	else
            	pidofproc -s $@
        fi
        base=""${1##*/}""
}

This is plainly wrong: the two clauses of the if statement should be swapped.
NB: all the other uses of pidofproc() in this file are correct: the then clause
of the 'if -z ""$..>""' statement calls pidofproc() without the -p flag and the
else clause calls it with the -p flag."	defect	closed	normal	6.5	Book	unspecified	normal	fixed		
