From 54d4db3a260989e8c66e535a6d06121b761b881d Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 18 Aug 2008 18:35:12 +0000 Subject: [PATCH] Fix Test returning to userland. --- client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index 18be14aa..72178c8d 100644 --- a/client.c +++ b/client.c @@ -1431,7 +1431,9 @@ handle_dhcp(struct if_state *state, struct dhcp_message **dhcpp, log_dhcp(LOG_INFO, "offered", dhcp); if (state->options & DHCPCD_TEST) { run_script(options, iface->name, "TEST", dhcp, NULL); - return 0; + /* Fake the fact we forked so we return 0 to userland */ + state->options |= DHCPCD_FORKED; + return -1; } free(state->offer); state->offer = dhcp; -- 2.47.2