From 53c3963497dbf82c3f4f085d5cd97b8b0941c29e Mon Sep 17 00:00:00 2001 From: Laslo Hunhold Date: Fri, 23 Feb 2018 22:29:00 +0100 Subject: [PATCH] Actually exit the child process once finished serving MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks Rodrigo S. CaƱibano for noticing this! --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index dc78eb0..754299a 100644 --- a/main.c +++ b/main.c @@ -242,6 +242,7 @@ main(int argc, char *argv[]) continue; case 0: serve(infd, &in_sa); + exit(0); break; default: /* close the connection in the parent */