diff --git a/src/zapit/src/frontend.cpp b/src/zapit/src/frontend.cpp index e8dc95d10..ef747a565 100644 --- a/src/zapit/src/frontend.cpp +++ b/src/zapit/src/frontend.cpp @@ -210,7 +210,7 @@ bool CFrontend::Open(void) printf("[fe%d] open %s\n", fenumber, filename); if (fd < 0) { - if ((fd = open(filename, O_RDWR | O_NONBLOCK)) < 0) { + if ((fd = open(filename, O_RDWR | O_NONBLOCK | O_CLOEXEC)) < 0) { ERROR(filename); return false; }