Actually exit the child process once finished serving
Thanks Rodrigo S. Cañibano for noticing this!
This commit is contained in:
parent
55d7f000cd
commit
53c3963497
1 changed files with 1 additions and 0 deletions
1
main.c
1
main.c
|
@ -242,6 +242,7 @@ main(int argc, char *argv[])
|
||||||
continue;
|
continue;
|
||||||
case 0:
|
case 0:
|
||||||
serve(infd, &in_sa);
|
serve(infd, &in_sa);
|
||||||
|
exit(0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* close the connection in the parent */
|
/* close the connection in the parent */
|
||||||
|
|
Loading…
Reference in a new issue