From 3ee6b4aab9f052c148c2838c36cffa53cc2e4d54 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 25 Nov 2020 14:55:25 +0000 Subject: [PATCH] Don't stop control in test --- src/dhcpcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3