On Thu, Feb 3, 2011 at 2:44 PM, Andy Gibbs <[email protected]> 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 _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
