From: Roy Marples Date: Mon, 5 Sep 2022 20:37:32 +0000 (+0100) Subject: dhcpcd: Remove last nanosleep X-Git-Tag: v10.0.0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c54cd6abf838c3693a8b87cb173868fbbc9f5b3;p=thirdparty%2Fdhcpcd.git dhcpcd: Remove last nanosleep Fixes #128. --- diff --git a/src/dhcpcd.c b/src/dhcpcd.c index dca38086..ccfb9894 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -2656,15 +2656,8 @@ exit1: if (ps_stopwait(&ctx) != EXIT_SUCCESS) i = EXIT_FAILURE; #endif - if (ctx.options & DHCPCD_STARTED && !(ctx.options & DHCPCD_FORKED)) { + if (ctx.options & DHCPCD_STARTED && !(ctx.options & DHCPCD_FORKED)) loginfox(PACKAGE " exited"); - -#ifdef PRIVSEP - /* Sleep some for the exited log entry to be written. */ - struct timespec ts = { .tv_nsec = 10 }; - nanosleep(&ts, NULL); -#endif - } #ifdef PRIVSEP if (ps_root_stop(&ctx) == -1) i = EXIT_FAILURE;