tskrtt

Simple libev based gopher server
git clone https://git.inz.fi/tskrtt/
Log | Files | Refs | README

commit bbf8818893746911a3f5bf9eb87428ad1d560005
parent 45043099497e6e16bd53f206a88c128263418cab
Author: Santtu Lakkala <inz@inz.fi>
Date:   Sun, 16 May 2021 22:32:44 +0300

Close input/output after fork

Diffstat:
Mmain.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/main.c b/main.c @@ -1485,6 +1485,9 @@ int main (int argc, char *argv[]) close(lfd); return 0; } + close(STDIN_FILENO); + close(STDOUT_FILENO); + close(STDERR_FILENO); } listen_watcher.fd = lfd;