diff options
Diffstat (limited to 'libutil/gr_util.c')
-rw-r--r-- | libutil/gr_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libutil/gr_util.c b/libutil/gr_util.c index 2f87bd1..4583257 100644 --- a/libutil/gr_util.c +++ b/libutil/gr_util.c @@ -101,7 +101,7 @@ gr_lock(void) for (;;) { struct stat st; - lockfd = flopen(group_file, O_RDONLY|O_NONBLOCK, 0); + lockfd = flopen(group_file, O_RDONLY|O_NONBLOCK|O_CLOEXEC, 0); if (lockfd == -1) { if (errno == EWOULDBLOCK) { errx(1, "the group file is busy"); |