commit bed475cef1b80854f9cfa7a2b9a86ab8ec0ac868
Author: Laslo Hunhold <[email protected]>
AuthorDate: Tue Aug 8 22:06:21 2017 +0200
Commit: Laslo Hunhold <[email protected]>
CommitDate: Tue Aug 8 22:06:21 2017 +0200
Make sure we flush the buffers before leaving
diff --git a/quark.c b/quark.c
index 8137081..a1593a1 100644
--- a/quark.c
+++ b/quark.c
@@ -829,7 +829,7 @@ serve(int insock)
shutdown(infd, SHUT_RD);
shutdown(infd, SHUT_WR);
close(infd);
- _exit(0);
+ exit(0);
default:
/* close the connection in the parent */
close(infd);
@@ -1095,7 +1095,7 @@ main(int argc, char *argv[])
}
serve(insock);
- _exit(0);
+ exit(0);
default:
while ((wpid = wait(&status)) > 0)
;