Re-localize insock, don't manually close the socket
The OS will take care of it.
This commit is contained in:
parent
1a0eca12a5
commit
36ec9b2239
1 changed files with 1 additions and 3 deletions
4
quark.c
4
quark.c
|
@ -29,7 +29,6 @@
|
||||||
#include "arg.h"
|
#include "arg.h"
|
||||||
|
|
||||||
char *argv0;
|
char *argv0;
|
||||||
static int insock;
|
|
||||||
static char *udsname;
|
static char *udsname;
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
@ -893,7 +892,6 @@ getipsock(void)
|
||||||
static void
|
static void
|
||||||
cleanup(void)
|
cleanup(void)
|
||||||
{
|
{
|
||||||
close(insock);
|
|
||||||
if (udsname)
|
if (udsname)
|
||||||
unlink(udsname);
|
unlink(udsname);
|
||||||
}
|
}
|
||||||
|
@ -977,7 +975,7 @@ main(int argc, char *argv[])
|
||||||
struct group *grp = NULL;
|
struct group *grp = NULL;
|
||||||
struct rlimit rlim;
|
struct rlimit rlim;
|
||||||
pid_t cpid, wpid;
|
pid_t cpid, wpid;
|
||||||
int i, status = 0;
|
int i, insock, status = 0;
|
||||||
|
|
||||||
ARGBEGIN {
|
ARGBEGIN {
|
||||||
case 'd':
|
case 'd':
|
||||||
|
|
Loading…
Reference in a new issue