From: Roy Marples Date: Wed, 25 Nov 2020 14:55:25 +0000 (+0000) Subject: Don't stop control in test X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ee6b4aab9f052c148c2838c36cffa53cc2e4d54;p=people%2Fms%2Fdhcpcd.git Don't stop control in test --- 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