[hackers] [quark] Actually exit the child process once finished serving || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Fri, 23 Feb 2018 22:29:35 +0100 (CET)

commit 53c3963497dbf82c3f4f085d5cd97b8b0941c29e
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Fri Feb 23 22:29:00 2018 +0100
Commit: Laslo Hunhold <dev_AT_frign.de>
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
_AT_@ -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 */
Received on Fri Feb 23 2018 - 22:29:35 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 23 2018 - 22:36:26 CET