summaryrefslogtreecommitdiffstats
path: root/src/privsep.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-04-06 21:13:39 +0100
committerRoy Marples <roy@marples.name>2020-04-06 21:13:39 +0100
commit126d188d5450446365928cd3fd6e6d4f20292ede (patch)
treebc7ee3d2ab0e06ae1a546fb7f1d141d6a52b5376 /src/privsep.c
parent67c277f1ebed48bd2e490e08514878e215c44be2 (diff)
downloaddhcpcd-126d188d5450446365928cd3fd6e6d4f20292ede.tar.xz
privsep: Don't overwrite initial sigmask
We really don't want to do that ....
Diffstat (limited to 'src/privsep.c')
-rw-r--r--src/privsep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/privsep.c b/src/privsep.c
index f074ee2f..5f8af83d 100644
--- a/src/privsep.c
+++ b/src/privsep.c
@@ -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;
}