From: Steinar H. Gunderson Date: Fri, 7 May 2021 15:57:38 +0000 (+0200) Subject: Stop leaking the /dev/null fd after spawning a subprocess. X-Git-Tag: 1.5.0~17 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=0229f4414b3b63934c057030deb88cbf6926bb1f Stop leaking the /dev/null fd after spawning a subprocess. --- diff --git a/httpinput.cpp b/httpinput.cpp index 8d443c7..62ed663 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -276,6 +276,7 @@ int HTTPInput::open_child_process(const string &cmdline) free(argv[0]); free(argv[1]); free(argv[2]); + close(devnullfd); close(pipefd[1]); if (err == 0) {