diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-12-27 20:24:44 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-12-27 20:24:44 +0000 |
| commit | ede89d5db23dfd58782f3be103eb6dd1df83b533 (patch) | |
| tree | 8ea4f8c558537571085b253d0a6e095f5eb687fe /lib/libutil/gr_util.c | |
| parent | b3075010f83282bb9924d3771b639b02262f0aff (diff) | |
Notes
Diffstat (limited to 'lib/libutil/gr_util.c')
| -rw-r--r-- | lib/libutil/gr_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/gr_util.c b/lib/libutil/gr_util.c index 2f87bd1c0563..4583257d360f 100644 --- a/lib/libutil/gr_util.c +++ b/lib/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"); |
