summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/unix.ml
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2013-08-01 12:14:57 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2013-08-01 12:14:57 +0000
commit1c58683353103cab7835e94d24baa33bd6c931ba (patch)
treeb6be10a3b1b00ee1a7a0b7c523fea4fa9d8da4b7 /otherlibs/win32unix/unix.ml
parent5e78d37215f673f0b8d90ee760206f8f169b1b7d (diff)
PR#5568: add O_CLOEXEC flag to Unix.openfile, so that the returned
file descriptor is created in close-on-exec mode. (Reflecting commit r13961 on version/4.01) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13962 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/unix.ml')
-rw-r--r--otherlibs/win32unix/unix.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/otherlibs/win32unix/unix.ml b/otherlibs/win32unix/unix.ml
index a8a3dcc2a..cff003994 100644
--- a/otherlibs/win32unix/unix.ml
+++ b/otherlibs/win32unix/unix.ml
@@ -169,6 +169,7 @@ type open_flag =
| O_SYNC
| O_RSYNC
| O_SHARE_DELETE
+ | O_CLOEXEC
type file_perm = int