udhcpc creating lots of zombie processes
Denys Vlasenko
vda.linux at googlemail.com
Thu Feb 3 16:28:35 UTC 2011
On Thu, Feb 3, 2011 at 2:44 PM, Andy Gibbs <andyg1001 at hotmail.co.uk> wrote:
> On Thursday, February 03, 2011 2:00 PM, Denys Vlasenko wrote:
>
>> [...snip...]
>> return -1; <===== we do not wait for child!
>> }
>> return pid;
>> }
>>
>> This only happens if exec fails.
>>
>> I want to confirm that bug indeed happens exactly here.
>> Can you run "strace -tt -f -s99 -oLOG -p <pid of udhcpc>"
>
> Thanks, the log is attached.
>
> But, I can also confirm that somehow the script at
> /usr/share/udhcpc/default.script had lost its execute permissions.
> Re-enabling execute permissions for this file has solved the problems I have
> been seeing and I think this confirms your diagnosis!
>
> On a different topic but still related to udhcpc, is it possible to run the
> external script on shutdown of udhcpc?
Yes:
udhcpc.sh
======
udhcpc "$@"
external_script_on_shutdown.sh
--
vda
More information about the busybox
mailing list