summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBasile Starynkevitch <basile.starynkevitch@inria.fr>2004-02-25 12:13:26 +0000
committerBasile Starynkevitch <basile.starynkevitch@inria.fr>2004-02-25 12:13:26 +0000
commit7ffa235c4403e8e378c00f39d4b30b0ae6f68174 (patch)
treeda8581fc55ada2534b17fb7f8060c61d9d909d3d
parente2b313a0556afc6c9d66400864aaea4347a0490f (diff)
all execv* functions never return so have type ... -> 'a (PR#2273)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6131 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--otherlibs/unix/unix.mli11
1 files changed, 7 insertions, 4 deletions
diff --git a/otherlibs/unix/unix.mli b/otherlibs/unix/unix.mli
index 4328fed5a..a98beae54 100644
--- a/otherlibs/unix/unix.mli
+++ b/otherlibs/unix/unix.mli
@@ -153,15 +153,18 @@ type wait_flag =
| WUNTRACED (** report also the children that receive stop signals. *)
(** Flags for {!Unix.waitpid}. *)
-val execv : string -> string array -> unit
+val execv : string -> string array -> 'a
(** [execv prog args] execute the program in file [prog], with
- the arguments [args], and the current process environment. *)
+ the arguments [args], and the current process environment.
+ These [execv*] functions never return: on success, the current
+ program is replaced by the new one;
+ on failure, a {!Unix.Unix_error} exception is raised. *)
-val execve : string -> string array -> string array -> unit
+val execve : string -> string array -> string array -> 'a
(** Same as {!Unix.execv}, except that the third argument provides the
environment to the program executed. *)
-val execvp : string -> string array -> unit
+val execvp : string -> string array -> 'a
(** Same as {!Unix.execv} respectively, except that
the program is searched in the path. *)