Actually exit the child process once finished serving - quark - quark web server
(HTM) git clone git://git.suckless.org/quark
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 53c3963497dbf82c3f4f085d5cd97b8b0941c29e
(DIR) parent 55d7f000cdf9d4683caff71aea4f9d0cc0d13729
(HTM) Author: Laslo Hunhold <dev@frign.de>
Date: Fri, 23 Feb 2018 22:29:00 +0100
Actually exit the child process once finished serving
Thanks Rodrigo S. CaƱibano for noticing this!
Diffstat:
M main.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git 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 */