diff --git a/scriptd.c b/scriptd.c index cdfa717..ce8ebdb 100644 --- a/scriptd.c +++ b/scriptd.c @@ -10,6 +10,7 @@ #include #include #include +#include #include "nk/log.h" #include "nk/io.h" #include "nk/pspawn.h" @@ -153,6 +154,8 @@ void scriptd_main(void) prctl(PR_SET_NAME, "ndhc: scriptd"); umask(077); setup_signals_scriptd(); + fcntl(scriptdSock[1], F_SETFD, FD_CLOEXEC); + fcntl(scriptdStream[1], F_SETFD, FD_CLOEXEC); do_scriptd_work(); }