diff options
Diffstat (limited to 'bdb/os/os_handle.c')
-rw-r--r-- | bdb/os/os_handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bdb/os/os_handle.c b/bdb/os/os_handle.c index b127c5ff506..d85b13a6602 100644 --- a/bdb/os/os_handle.c +++ b/bdb/os/os_handle.c @@ -121,7 +121,7 @@ __os_openhandle(dbenv, name, flags, mode, fhp) } else { #if defined(HAVE_FCNTL_F_SETFD) /* Deny file descriptor access to any child process. */ - if (fcntl(fhp->fd, F_SETFD, 1) == -1) { + if (fcntl(fhp->fd, F_SETFD, FD_CLOEXEC) == -1) { ret = __os_get_errno(); __db_err(dbenv, "fcntl(F_SETFD): %s", strerror(ret)); |