LFS Bootscripts

DJ Lucas dj at linuxfromscratch.org
Mon Aug 8 17:05:11 PDT 2005

DJ Lucas wrote:

>>> Never mind.  $$ is not actually incrementing, but I don't know what
>>> processes pidof is finding when running that script.  Creating a second
>>> functions script with only statusproc and getpids using the same 'pidof
>>> -o $$ -o $PPID -x "${1}"' gives the proper result.  It looks as if pidof
>>> it's finding it's own PID but that can't be either because it does not
>>> find itself in the second example.  I'm at a loss.  Will revisit after
>>> some sleep.

Okay..I'm not sure how (if) this affects the LSB function for pidofproc,
but it does do the right thing with the output.  I've still not tested
this thouroughly, expecially WRT pidofproc!!!

-- DJ Lucas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lfs-bootscripts-3.2.2-getpids.patch
Type: text/x-patch
Size: 1206 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20050808/09ff7b5c/attachment.bin>

More information about the lfs-dev mailing list