Skip to content

Commit

Permalink
Unix.create_process => Unix.create_process_env
Browse files Browse the repository at this point in the history
  • Loading branch information
nojb committed Apr 30, 2018
1 parent ec98e86 commit 596b5a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testsuite/tests/win-unicode/exec_tests.ml
Expand Up @@ -54,7 +54,8 @@ let restart = function
let main () =
match Array.length Sys.argv with
| 1 ->
let pid = Unix.create_process Sys.executable_name [|Sys.executable_name; "0"|] Unix.stdin Unix.stdout Unix.stderr in
let pid = Unix.create_process_env Sys.executable_name [|Sys.executable_name; "0"|]
(Unix.environment ()) Unix.stdin Unix.stdout Unix.stderr in
begin match Unix.waitpid [] pid with
| _, Unix.WEXITED 0 -> ()
| _, (Unix.WEXITED _ | Unix.WSIGNALED _ | Unix.WSTOPPED _) -> failwith "Child process error"
Expand Down

0 comments on commit 596b5a6

Please sign in to comment.