all repos — slstatus @ 3971c1f47c6b6b7b87a50efa24674c7820d24ac1

my build of slstatus (tools.suckless.org/slstatus/)

check daemon() return value
Aaron Marcher info@nulltime.net
Mon, 10 Oct 2016 18:52:46 +0200
commit

3971c1f47c6b6b7b87a50efa24674c7820d24ac1

parent

6890a27a3a4b0ac5f57d1fe554db0dbb90909072

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M slstatus.cslstatus.c

@@ -621,8 +621,8 @@

if (dflag && oflag) { usage(); } - if (dflag) { - (void)daemon(1, 1); + if (dflag && daemon(1, 1) < 0) { + err(1, "daemon"); } memset(&act, 0, sizeof(act));