[Pkg-ocaml-maint-commits] [lwt] 01/03: Add Unix.O_CLOEXEC flag to Lwt_unix

Stéphane Glondu glondu at alioth.debian.org
Sat Nov 9 07:20:39 UTC 2013


This is an automated email from the git hooks/post-receive script.

glondu pushed a commit to branch master
in repository lwt.

commit 2a6e5539a085e80c1c04535ca9bd6a914ed9b0b1
Author: Anil Madhavapeddy <anil at recoil.org>
Date:   Sat Aug 3 20:20:55 2013 +0100

    Add Unix.O_CLOEXEC flag to Lwt_unix
---
 .../0002-Add-Unix.O_CLOEXEC-flag-to-Lwt_unix.patch |   40 ++++++++++++++++++++
 debian/patches/series                              |    1 +
 2 files changed, 41 insertions(+)

diff --git a/debian/patches/0002-Add-Unix.O_CLOEXEC-flag-to-Lwt_unix.patch b/debian/patches/0002-Add-Unix.O_CLOEXEC-flag-to-Lwt_unix.patch
new file mode 100644
index 0000000..935653a
--- /dev/null
+++ b/debian/patches/0002-Add-Unix.O_CLOEXEC-flag-to-Lwt_unix.patch
@@ -0,0 +1,40 @@
+From: Anil Madhavapeddy <anil at recoil.org>
+Date: Sat, 3 Aug 2013 20:20:55 +0100
+Subject: Add Unix.O_CLOEXEC flag to Lwt_unix
+
+Origin: https://github.com/ocsigen/lwt/pull/2.patch
+Signed-off-by: Stephane Glondu <steph at glondu.net>
+---
+ src/unix/lwt_unix.ml  | 3 +++
+ src/unix/lwt_unix.mli | 3 +++
+ 2 files changed, 6 insertions(+)
+
+diff --git a/src/unix/lwt_unix.ml b/src/unix/lwt_unix.ml
+index 58c2c25..cc3cdba 100644
+--- a/src/unix/lwt_unix.ml
++++ b/src/unix/lwt_unix.ml
+@@ -596,6 +596,9 @@ type open_flag =
+ #if ocaml_version >= (3, 13)
+   | O_SHARE_DELETE
+ #endif
++#if ocaml_version >= (4, 01)
++  | O_CLOEXEC
++#endif
+ 
+ #if windows
+ 
+diff --git a/src/unix/lwt_unix.mli b/src/unix/lwt_unix.mli
+index c59e8c5..3874fc2 100644
+--- a/src/unix/lwt_unix.mli
++++ b/src/unix/lwt_unix.mli
+@@ -315,6 +315,9 @@ type open_flag =
+ #if ocaml_version >= (3, 13)
+   | O_SHARE_DELETE
+ #endif
++#if ocaml_version >= (4, 01)
++  | O_CLOEXEC
++#endif
+ 
+ val openfile : string -> open_flag list -> file_perm -> file_descr Lwt.t
+   (** Wrapper for [Unix.openfile]. *)
+-- 
diff --git a/debian/patches/series b/debian/patches/series
index 97db22b..810a203 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Do-not-build-manual-manual.pdf.patch
+0002-Add-Unix.O_CLOEXEC-flag-to-Lwt_unix.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/lwt.git



More information about the Pkg-ocaml-maint-commits mailing list