Question

snoweyes butlucky at gmail.com
Thu Dec 5 05:10:39 UTC 2013


hello:
I would like to ask a question !

when you use busybox command , eg udhcpc
you can not get the right pid number in the udhcpc_main function.
when you use getpid() to get a value 495 , but the real num is 499 maybe.

but the write_pidfile() function in  udhcpc_main can use getpid() to write the right number to a file
I finally found that this write_pid() function has been run 2 times


i am confused ,how can this happen!
hope somebody can tell me!


Best regards


More information about the busybox mailing list