[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [SOLVED] pidof misses a pid sometimes
From:       Peter Kuennemann <itb.pkue () googlemail ! com>
Date:       2011-12-30 14:36:19
Message-ID: -4613965077204725122 () unknownmsgid
[Download RAW message or body]

Q

W m
 C
f
Mit freundlichen Gr=FC=DFen

Peter K=FCnnemann

Am 29.12.2011 um 13:09 schrieb Matthias Andree <mandree@freebsd.org>:

> Am 29.12.2011 08:55, schrieb Bastian Bittorf:
>>> pidof: pid:9071 no match: comm:'sh' argv0:'sh' exe:'/bin/bash'
>>> pidof: pid:9072 no match: comm:'busybox' argv0:'./busybox'
>>> exe:'/root/srcdevel/bbox/fix/busybox.t2/busybox'
>>> pidof: pid:9073 no match: comm:'sh' argv0:'sh' exe:'/bin/bash'
>>> pidof: pid:24014 no match: comm:'top' argv0:'top'
>>> exe:'/app/busybox-1.19.2/busybox'
>>> found a pid, which pidof did'nt see: 9073 -> wget
>>>
>>> In other words, when pidof was looking at process 9073, it was
>>> still a
>>> shell process -
>>> IOW, the syscall to execute wget did not happen yet.
>>
>> Thank you very much for your debugging-work. This race/situation
>> (very slow fork), was till now unbelieveable to me...
>
> If something that is timing-dependent can go wrong, it will -- sooner or
> later, and whether you believe it possible or not :)
>
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic