diff options
Diffstat (limited to 'daemon/DynBuf.cpp')
-rw-r--r-- | daemon/DynBuf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/DynBuf.cpp b/daemon/DynBuf.cpp index 6f92b33..df20713 100644 --- a/daemon/DynBuf.cpp +++ b/daemon/DynBuf.cpp @@ -40,7 +40,7 @@ int DynBuf::resize(const size_t minCapacity) { bool DynBuf::read(const char *const path) { int result = false; - const int fd = open(path, O_RDONLY); + const int fd = open(path, O_RDONLY | O_CLOEXEC); if (fd < 0) { logg->logMessage("%s(%s:%i): open failed", __FUNCTION__, __FILE__, __LINE__); return false; |