summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-11-25 14:55:25 +0000
committerRoy Marples <roy@marples.name>2020-11-25 14:55:25 +0000
commit3ee6b4aab9f052c148c2838c36cffa53cc2e4d54 (patch)
tree3d517be8b9c3eaedbfb48c59a4a34ba4df8255ea
parent21d355135157335a8d85a14412c006dff3eb41ff (diff)
downloaddhcpcd-3ee6b4aab9f052c148c2838c36cffa53cc2e4d54.tar.xz
Don't stop control in test
-rw-r--r--src/dhcpcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c
index 7727a48e..306d1d00 100644
--- a/src/dhcpcd.c
+++ b/src/dhcpcd.c
@@ -2540,7 +2540,7 @@ exit_failure:
i = EXIT_FAILURE;
exit1:
- if (control_stop(&ctx) == -1)
+ if (!(ctx.options & DHCPCD_TEST) && control_stop(&ctx) == -1)
logerr("%s: control_stop", __func__);
if (ifaddrs != NULL) {
#ifdef PRIVSEP_GETIFADDRS