commit 36ec9b223941b76754f2fbd713780e9b97c456f1
Author:     Quentin Rameau <[email protected]>
AuthorDate: Mon Jul 24 00:59:34 2017 +0200
Commit:     Laslo Hunhold <[email protected]>
CommitDate: Mon Jul 24 16:49:24 2017 +0200

    Re-localize insock, don't manually close the socket
    
    The OS will take care of it.

diff --git a/quark.c b/quark.c
index 48f52c3..9817b42 100644
--- a/quark.c
+++ b/quark.c
@@ -29,7 +29,6 @@
 #include "arg.h"
 
 char *argv0;
-static int insock;
 static char *udsname;
 
 #include "config.h"
@@ -893,7 +892,6 @@ getipsock(void)
 static void
 cleanup(void)
 {
-       close(insock);
        if (udsname)
                 unlink(udsname);
 }
@@ -977,7 +975,7 @@ main(int argc, char *argv[])
        struct group *grp = NULL;
        struct rlimit rlim;
        pid_t cpid, wpid;
-       int i, status = 0;
+       int i, insock, status = 0;
 
        ARGBEGIN {
        case 'd':

Reply via email to