[hackers] [quark] Re-localize insock, don't manually close the socket || Quentin Rameau
commit 36ec9b223941b76754f2fbd713780e9b97c456f1
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Mon Jul 24 00:59:34 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
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
_AT_@ -29,7 +29,6 @@
#include "arg.h"
char *argv0;
-static int insock;
static char *udsname;
#include "config.h"
_AT_@ -893,7 +892,6 @@ getipsock(void)
static void
cleanup(void)
{
- close(insock);
if (udsname)
unlink(udsname);
}
_AT_@ -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':
Received on Mon Jul 24 2017 - 16:49:37 CEST
This archive was generated by hypermail 2.3.0
: Mon Jul 24 2017 - 17:04:16 CEST