aboutgitcodebugslistschat
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 83eba82..81cf744 100644
--- a/util.c
+++ b/util.c
@@ -495,7 +495,7 @@ void procfs_scan_listen(struct ctx *c, uint8_t proto, int ip_version, int ns,
if (*fd != -1)
lseek(*fd, 0, SEEK_SET);
- else if ((*fd = open(path, O_RDONLY)) < 0)
+ else if ((*fd = open(path, O_RDONLY | O_CLOEXEC)) < 0)
return;
*line = 0;