Skip to content
This repository was archived by the owner on Oct 24, 2020. It is now read-only.

Commit c4c1cfa

Browse files
author
Christopher Zimmermann
committed
~cloexec only available since OCaml 4.05
1 parent 6978f5a commit c4c1cfa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ open Alcotest
22

33
let bigstring_unix =
44
let empty = char_of_int 0xdf in
5-
let source, drain = Unix.pipe ~cloexec:true () in
5+
let source, drain = Unix.pipe () in
6+
Unix.set_close_on_exec source;
7+
Unix.set_close_on_exec drain;
68
Unix.set_nonblock source;
79
Unix.set_nonblock drain;
810
let check_read ?(shift=0) ?off ?len () =

0 commit comments

Comments
 (0)