pidof killall

Larry Brigman larry.brigman at gmail.com
Thu Oct 26 18:51:30 UTC 2006


On 10/26/06, Bernhard Fischer <rep.nop at aon.at> wrote:
> On Thu, Oct 26, 2006 at 08:34:49AM -0700, Larry Brigman wrote:
> >On 10/26/06, Bernhard Fischer <rep.nop at aon.at> wrote:
> >>On Wed, Oct 25, 2006 at 04:20:45PM -0700, Larry Brigman wrote:
> >>
> >>>>># telnetd
> >>>>># pidof
> >>>>>
> >>>>># pidof telnetd
> >>>>>cmd='init'  [telnetd]
> >>>>>cmd='ksoftirqd/0'  [telnetd]
> >>>>>cmd='desched/0'  [telnetd]
> >>>>>cmd='events/0'  [telnetd]
> >>>>>cmd='khelper'  [telnetd]
> >>>>>cmd='kthread'  [telnetd]
> >>>>>cmd='kblockd/0'  [telnetd]
> >>>>>cmd='khubd'  [telnetd]
> >>>>>cmd='pdflush'  [telnetd]
> >>>>>cmd='pdflush'  [telnetd]
> >>>>>cmd='kswapd0'  [telnetd]
> >>>>>cmd='aio/0'  [telnetd]
> >>>>>cmd='xfslogd/0'  [telnetd]
> >>>>>cmd='xfsdatad/0'  [telnetd]
> >>>>>cmd='xfsbufd'  [telnetd]
> >>>>>cmd='kseriod'  [telnetd]
> >>>>>cmd='syslogd'  [telnetd]
> >>>>>cmd='klogd'  [telnetd]
> >>>>>cmd='inetd'  [telnetd]
> >>>>>cmd='rms'  [telnetd]
> >>>>>cmd='ems'  [telnetd]
> >>>>>cmd='els'  [telnetd]
> >>>>>cmd='dropbear'  [telnetd]
> >>>>>cmd='getty'  [telnetd]
> >>>>>cmd='getty'  [telnetd]
> >>>>>cmd='getty'  [telnetd]
> >>>>>cmd='getty'  [telnetd]
> >>>>>cmd='dropbear'  [telnetd]
> >>>>>cmd='sh'  [telnetd]
> >>>>>cmd='getty'  [telnetd]
> >>>>>cmd='busybox'  [telnetd]
> >>>>>cmd='busybox'  [telnetd]
> >>>>>
> >>>>>#
> >>>>What libc are you using? Is busybox dynamically linked or static?
> >>>>
> >>>glibc 2.3.3 resized with mklibs, dynamic
> >>
> >>is telnetd a symlink or a hardlink?
> >>
> >>Unfortunately, this works like expected for me, i.e. i always see
> >>cmd='telnetd', no matter if i use a symlink or hardlink. Checked against
> >>glibc-2.3.6 and current uClibc, fwiw.
> >>
> >>What is your CONFIG_BUSYBOX_EXEC_PATH ?
> >>
> >telnetd is a hard-link
> >EXEC_PATH is /bin/busybox.  I had changed that from /proc/self/exe
> >when things didn't
> >work as expected until after proc was mounted.
>
> Change it back to /proc/self/exec. I take it that this fixes the problem
> you're seeing, please confirm.
>

It did.  The reason I change it in the first place was that busybox
croked on executing
scripts without /proc being mounted, which didn't happen on previous versions.
I worked around it but never solved it.



More information about the busybox mailing list