diff --git a/polyp/main.c b/polyp/main.c index f49232d4e..43a48f6b3 100644 --- a/polyp/main.c +++ b/polyp/main.c @@ -34,6 +34,7 @@ #include #include #include +#include #ifdef HAVE_LIBWRAP #include @@ -286,6 +287,11 @@ int main(int argc, char *argv[]) { close(0); close(1); + close(2); + + open("/dev/null", O_RDONLY); + open("/dev/null", O_WRONLY); + open("/dev/null", O_WRONLY); } chdir("/");