]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: test eloop error correctly release 536/head
authorRoy Marples <roy@marples.name>
Tue, 4 Nov 2025 09:18:57 +0000 (09:18 +0000)
committerRoy Marples <roy@marples.name>
Tue, 4 Nov 2025 09:18:57 +0000 (09:18 +0000)
src/privsep.c

index 76668fb2a029f8f9a7e8145c817e0f67982ee213..316520c11a9aa740aa540164442bd484858b9052 100644 (file)
@@ -760,7 +760,7 @@ ps_stopwait(struct dhcpcd_ctx *ctx)
 #endif
 
        error = eloop_start(ctx->ps_eloop);
-       if (error != EXIT_SUCCESS)
+       if (error < 0)
                logerr("%s: eloop_start", __func__);
 
        eloop_timeout_delete(ctx->ps_eloop, ps_process_timeout, ctx);