quark

quark web server
git clone git://git.suckless.org/quark
Log | Files | Refs | LICENSE

commit 1a0eca12a5b49a1eee22d0f7fcb7f03345d91e2b
parent 24167b5c0702b2edd7e82b75975849cac5a82e12
Author: Quentin Rameau <quinq@fifth.space>
Date:   Mon, 24 Jul 2017 00:56:43 +0200

Don't warn on cleanup unlink error

We may catch an exit signal before we actually bound to the socket.

Diffstat:
quark.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/quark.c b/quark.c @@ -894,9 +894,8 @@ static void cleanup(void) { close(insock); - if (udsname) { - if (unlink(udsname) < 0) - fprintf(stderr, "unlink: %s\n", strerror(errno)); + if (udsname) + unlink(udsname); } static void