Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150463544
D5549.1792438167.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
698 B
Referenced Files
None
Subscribers
None
D5549.1792438167.diff
View Options
Index: head/lib/libc/db/db/db.c
===================================================================
--- head/lib/libc/db/db/db.c
+++ head/lib/libc/db/db/db.c
@@ -44,6 +44,10 @@
static int __dberr(void);
+#ifndef O_CLOEXEC
+#define O_CLOEXEC 0
+#endif
+
DB *
dbopen(const char *fname, int flags, int mode, DBTYPE type, const void *openinfo)
{
@@ -51,7 +55,7 @@
#define DB_FLAGS (DB_LOCK | DB_SHMEM | DB_TXN)
#define USE_OPEN_FLAGS \
(O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
- O_RDONLY | O_RDWR | O_SHLOCK | O_SYNC | O_TRUNC)
+ O_RDONLY | O_RDWR | O_SHLOCK | O_SYNC | O_TRUNC | O_CLOEXEC)
if ((flags & ~(USE_OPEN_FLAGS | DB_FLAGS)) == 0)
switch (type) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 19, 7:29 PM (19 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30530574
Default Alt Text
D5549.1792438167.diff (698 B)
Attached To
Mode
D5549: Allow O_CLOEXEC to be used in dbopen() flags
Attached
Detach File
Event Timeline
Log In to Comment