[hackers] [quark] Make sure we flush the buffers before leaving || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Tue, 8 Aug 2017 22:06:29 +0200 (CEST)

commit bed475cef1b80854f9cfa7a2b9a86ab8ec0ac868
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Tue Aug 8 22:06:21 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
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
_AT_@ -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);
_AT_@ -1095,7 +1095,7 @@ main(int argc, char *argv[])
                 }
 
                 serve(insock);
- _exit(0);
+ exit(0);
         default:
                 while ((wpid = wait(&status)) > 0)
                         ;
Received on Tue Aug 08 2017 - 22:06:29 CEST

This archive was generated by hypermail 2.3.0 : Tue Aug 08 2017 - 22:12:32 CEST