aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-02-10 10:00:22 +0000
committersin <sin@2f30.org>2014-02-10 10:00:22 +0000
commit36cbf757036bc20dd8889ca7c19a025f8ded077e (patch)
treed9fffb1e743b36089609f9d0a0753f4ed8be2b2b
parent7345487258eacdabbb6a6335ab71e3c41ca79a3d (diff)
Don't clutter code
-rw-r--r--sinit.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sinit.c b/sinit.c
index f177803..7214c40 100644
--- a/sinit.c
+++ b/sinit.c
@@ -41,15 +41,10 @@ main(void)
return EXIT_FAILURE;
setsid();
- if (sigemptyset(&set) < 0)
- eprintf("sinit: sigemptyset:");
-
+ sigemptyset(&set);
for (i = 0; i < LEN(dispatchsig); i++)
- if (sigaddset(&set, dispatchsig[i].sig) < 0)
- eprintf("sinit: sigaddset:");
-
- if (sigprocmask(SIG_BLOCK, &set, NULL) < 0)
- eprintf("sinit: sigprocmask:");
+ sigaddset(&set, dispatchsig[i].sig);
+ sigprocmask(SIG_BLOCK, &set, NULL);
fd = signalfd(-1, &set, SFD_CLOEXEC);
if (fd < 0)