From 1a0eca12a5b49a1eee22d0f7fcb7f03345d91e2b Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Mon, 24 Jul 2017 00:56:43 +0200 Subject: [PATCH] Don't warn on cleanup unlink error We may catch an exit signal before we actually bound to the socket. --- quark.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/quark.c b/quark.c index 9f91f45..48f52c3 100644 --- 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