quark

quark web server
git clone git://git.suckless.org/quark
Log | Files | Refs | LICENSE

commit bed475cef1b80854f9cfa7a2b9a86ab8ec0ac868
parent 0b1c60eea22feb173ab507bc18eb599b2d6c4e40
Author: Laslo Hunhold <dev@frign.de>
Date:   Tue,  8 Aug 2017 22:06:21 +0200

Make sure we flush the buffers before leaving

Diffstat:
quark.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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) ;