]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: Don't overwrite initial sigmask
authorRoy Marples <roy@marples.name>
Mon, 6 Apr 2020 20:13:39 +0000 (21:13 +0100)
committerRoy Marples <roy@marples.name>
Mon, 6 Apr 2020 20:13:39 +0000 (21:13 +0100)
We really don't want to do that ....

src/privsep.c

index f074ee2fab5558ea20e1adfa51837d7a78c05cf8..5f8af83d453c6b65c2e15a17cf9f1b044c287eec 100644 (file)
@@ -227,7 +227,9 @@ ps_dostart(struct dhcpcd_ctx *ctx,
                logerr("%s: eloop_signal_set_cb", __func__);
                goto errexit;
        }
-       if (eloop_signal_mask(ctx->eloop, &ctx->sigset) == -1) {
+
+       /* ctx->sigset aready has the initial sigmask set in main() */
+       if (eloop_signal_mask(ctx->eloop, NULL) == -1) {
                logerr("%s: eloop_signal_mask", __func__);
                goto errexit;
        }