]> git.ozlabs.org Git - petitboot/commitdiff
discover/network: run udhcpc process in foreground mode
authorJeremy Kerr <jk@ozlabs.org>
Thu, 3 Apr 2014 07:48:20 +0000 (15:48 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 3 Apr 2014 07:48:20 +0000 (15:48 +0800)
We don't want udhcpc processes to detach, otherwise we aren't able to
stop the spawned background process, which we need to do on reinit.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/network.c

index 2b7e94cbbdad0a4987cb7cb54d820a2df8f0d3dc..60d1f6e0f4e1790ba4b2bb2b18bd3a7b81efe70b 100644 (file)
@@ -229,6 +229,7 @@ static void configure_interface_dhcp(struct interface *interface)
                pb_system_apps.udhcpc,
                "-R",
                "-n",
+               "-f",
                "-O", "pxeconffile",
                "-O", "pxepathprefix",
                "-p", pidfile,