]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
dhcpcd: Remove last nanosleep
authorRoy Marples <roy@marples.name>
Mon, 5 Sep 2022 20:37:32 +0000 (21:37 +0100)
committerRoy Marples <roy@marples.name>
Mon, 5 Sep 2022 20:37:32 +0000 (21:37 +0100)
Fixes #128.

src/dhcpcd.c

index dca3808656fc85ed19a21b3e3d9a3e7b24a0ba54..ccfb98946464323605f6a05edd9cc0dff5760757 100644 (file)
@@ -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;