summaryrefslogtreecommitdiff
path: root/openvpn/src/openvpn/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'openvpn/src/openvpn/status.c')
-rw-r--r--openvpn/src/openvpn/status.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openvpn/src/openvpn/status.c b/openvpn/src/openvpn/status.c
index 5f9ab9ee..b7ff4843 100644
--- a/openvpn/src/openvpn/status.c
+++ b/openvpn/src/openvpn/status.c
@@ -33,6 +33,7 @@
#include "status.h"
#include "perf.h"
#include "misc.h"
+#include "fdmisc.h"
#include "memdbg.h"
@@ -98,6 +99,7 @@ status_open (const char *filename,
if (so->fd >= 0)
{
so->filename = string_alloc (filename, NULL);
+ set_cloexec (so->fd);
/* allocate read buffer */
if (so->flags & STATUS_OUTPUT_READ)