PIDOF

mike wtf62 at rovoreed.com
Mon Dec 25 15:44:06 UTC 2006


On Sun, 2006-12-24 at 20:16 +0000, Luciano Miguel Ferreira Rocha wrote:
> On Sun, Dec 24, 2006 at 07:35:19PM +0000, mike wrote:
> > On Sun, 2006-12-24 at 18:44 +0000, Luciano Miguel Ferreira Rocha wrote:
> > > On Sun, Dec 24, 2006 at 04:47:06PM +0000, mike wrote:
> > > > Is it just me or does pidof not do anything. e.g.
> > > > 
> > > > # pidof init
> > > 
> > > # pidof init
> > > 478 477 476 1
> > > # umount /proc
> > > # pidof init
> > > 
> > > Do you have /proc mounted?
> > > 
> > 
> > Glad to know it does work. I do have /proc mounted
> > 
> > # cat /proc/mounts
> > rootfs / rootfs rw 0 0
> > /dev/root / ext2 rw 0 0
> > proc /proc proc rw,nodiratime 0 0
> > #
> > 
> > Any other suggestions ? If it helps I built the system using Buildroot
> > obtained via svn
> 
> Note that pidof doesn't report an error for unknown processes. So, are
> you sure you're running init and not linuxrc? :)
> 
> If you're sure, can you send a strace log?

OK. Bit of a mystery this. I've just upgraded the kernel from 2.6.12 to
2.6.19.1 (to take advantage of extra features on PCMCIA) and pidof now
works.

I'm not going to worry about it further - it must have been something to
do with the kernel or my setup

Happy Xmas

Mike




More information about the busybox mailing list