projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6890a27
)
check daemon() return value
author
Aaron Marcher
<info@nulltime.net>
Mon, 10 Oct 2016 16:52:46 +0000
(18:52 +0200)
committer
Aaron Marcher
<info@nulltime.net>
Mon, 10 Oct 2016 16:52:46 +0000
(18:52 +0200)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index 57ef9a9af9f73b268d47bd5b1f3e516767c5e309..0a0f7430e58d6fe7938132132dfbd09321cb8528 100644
(file)
--- a/
slstatus.c
+++ b/
slstatus.c
@@
-621,8
+621,8
@@
main(int argc, char *argv[])
if (dflag && oflag) {
usage();
}
- if (dflag) {
-
(void)daemon(1, 1
);
+ if (dflag
&& daemon(1, 1) < 0
) {
+
err(1, "daemon"
);
}
memset(&act, 0, sizeof(act));