commit 1a0eca12a5b49a1eee22d0f7fcb7f03345d91e2b
Author:     Quentin Rameau <[email protected]>
AuthorDate: Mon Jul 24 00:56:43 2017 +0200
Commit:     Laslo Hunhold <[email protected]>
CommitDate: Mon Jul 24 16:49:24 2017 +0200

    Don't warn on cleanup unlink error
    
    We may catch an exit signal before we actually bound to the socket.

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

Reply via email to