From 36ec9b223941b76754f2fbd713780e9b97c456f1 Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Mon, 24 Jul 2017 00:59:34 +0200 Subject: [PATCH] Re-localize insock, don't manually close the socket MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The OS will take care of it. --- quark.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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':