diff options
Diffstat (limited to 'daemon/grep.c')
-rw-r--r-- | daemon/grep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/grep.c b/daemon/grep.c index 3562f369..285c48ec 100644 --- a/daemon/grep.c +++ b/daemon/grep.c @@ -36,7 +36,7 @@ grep (const char *prog, const char *flag, const char *regex, const char *path) char **lines; CHROOT_IN; - fd = open (path, O_RDONLY); + fd = open (path, O_RDONLY|O_CLOEXEC); CHROOT_OUT; if (fd == -1) { |