quark

quark web server
git clone git://git.suckless.org/quark
Log | Files | Refs | LICENSE

commit 36ec9b223941b76754f2fbd713780e9b97c456f1
parent 1a0eca12a5b49a1eee22d0f7fcb7f03345d91e2b
Author: Quentin Rameau <quinq@fifth.space>
Date:   Mon, 24 Jul 2017 00:59:34 +0200

Re-localize insock, don't manually close the socket

The OS will take care of it.

Diffstat:
Mquark.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 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':