Patch for dhcpc for immediate backgrounding
John Kamenik
jkamenik at patton.com
Fri Jun 8 14:25:30 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks for the suggestion.
It was easier for me to just patch udhcpc then it was to add setsid
to the cross-compile environment. Since I had to patch udhcpc for my
system anyway I thought I would share it back with the community.
John T. Kamenik (Software Eng.)
jkamenik at patton.com
On Jun 8, 2007, at 3:35 AM, Denis Vlasenko wrote:
> On Tuesday 05 June 2007 17:35, John Kamenik wrote:
>> All,
>>
>> I have patched the 1.00 version of BusyBox's DHCP Client to add the
>> option to Daemonize at start. I took a quick look at the 1.6 version
>> of BusyBox and it looks like the change could be easily applied to
>> it. I unfortunately do not use 1.6 and do not have time to patch it
>> myself.
>>
>> The patch simply adds a "-B" option which will cause the udhcpc
>> program to background immediately. It does NOT replace the "-b"
>> which causes udhcpc to background after it attempts to get a lease.
>> I added it so I do not have to block waiting for the first lease
>> attempt, which can take a decent amount of time if there is no DHCP
>> server to contact.
>
> What about using "setsid udhcpcd >/dev/null 2>/dev/null </dev/null &"?
> --
> vda
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
iD8DBQFGaWbaGcYBlkXseR8RAjGSAJ47CtOnA9cQO/lhOLJ+K1JcqbUxbwCgrvF7
DabYFqAmrJcDhIsaV+YhHn0=
=RtWs
-----END PGP SIGNATURE-----
More information about the busybox
mailing list