DoS bug in initscripts

Gerard Beekmans gerard at
Mon Apr 7 09:23:29 PDT 2003

On April 7, 2003 10:11 am, Michael A. Peters wrote:
>         pidlist=$(pidof -o $$ -o $PPID -x $base)
> loadproc() passes gpm to getpids() and since the script is called gpm -
> it finds a PID and states that the service is already running, causing
> the init to not properly start.

That's why we run "pidof -o $$ -o $PPID"

$$ is the PID of itself and PPID is the parent PID, which is the calling 
script itself. Thus if you run /etc/rc.d/init.d/gpm start pidof will not 
include the script gpm in init.d in its pidlist.

Gerard Beekmans

-*- If Linux doesn't have the solution, you have the wrong problem -*-
Unsubscribe: send email to listar at
and put 'unsubscribe lfs-dev' in the subject header of the message

More information about the lfs-dev mailing list