summaryrefslogtreecommitdiff
path: root/bdb
diff options
context:
space:
mode:
Diffstat (limited to 'bdb')
-rw-r--r--bdb/Makefile.in13
-rw-r--r--bdb/os/os_handle.c2
2 files changed, 8 insertions, 7 deletions
diff --git a/bdb/Makefile.in b/bdb/Makefile.in
index 92c5b6ff54e..c83d40ac8b2 100644
--- a/bdb/Makefile.in
+++ b/bdb/Makefile.in
@@ -24,12 +24,13 @@ top_srcdir = @top_srcdir@
bdb_build = build_unix
files = LICENSE Makefile Makefile.in README
-subdirs = btree build_vxworks build_win32 clib common cxx db db185 \
- db_archive db_checkpoint db_deadlock db_dump db_dump185 db_load \
- db_printlog db_recover db_stat db_upgrade db_verify dbm dist \
- env examples_c examples_cxx hash hsearch include java libdb_java \
- lock log mp mutex os os_vxworks os_win32 perl.BerkeleyDB \
- perl.DB_File qam rpc_client rpc_server tcl test txn xa
+subdirs = btree build_vxworks build_win32 clib common cxx db dbinc \
+ dbinc_auto db185 db_archive db_checkpoint db_deadlock db_dump \
+ db_dump185 db_load db_printlog db_recover db_stat db_upgrade \
+ db_verify dbm dbreg dist env examples_c examples_cxx fileops hash \
+ hsearch hmac include java libdb_java lock log mp mutex os os_vxworks \
+ os_win32 perl.BerkeleyDB perl.DB_File qam rep rpc_client rpc_server tcl \
+ test txn xa
@SET_MAKE@
diff --git a/bdb/os/os_handle.c b/bdb/os/os_handle.c
index 19a337f7d22..5f617085e5d 100644
--- a/bdb/os/os_handle.c
+++ b/bdb/os/os_handle.c
@@ -132,7 +132,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));