aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdbmopen.c')
-rw-r--r--src/gdbmopen.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gdbmopen.c b/src/gdbmopen.c
index ddd82e2..67db9c2 100644
--- a/src/gdbmopen.c
+++ b/src/gdbmopen.c
@@ -122,7 +122,13 @@ gdbm_open (const char *file, int block_size, int flags, int mode,
dbf->file_locking = FALSE;
}
if (flags & GDBM_CLOEXEC)
- fbits = O_CLOEXEC;
+ {
+ fbits = O_CLOEXEC;
+ dbf->cloexec = TRUE;
+ }
+ else
+ dbf->cloexec = FALSE;
+
/* Open the file. */
need_trunc = FALSE;
switch (flags & GDBM_OPENMASK)

Return to:

Send suggestions and report system problems to the System administrator.