commit 53c3963497dbf82c3f4f085d5cd97b8b0941c29e
Author: Laslo Hunhold <[email protected]>
AuthorDate: Fri Feb 23 22:29:00 2018 +0100
Commit: Laslo Hunhold <[email protected]>
CommitDate: Fri Feb 23 22:29:00 2018 +0100
Actually exit the child process once finished serving
Thanks Rodrigo S. Cañibano for noticing this!
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 */