Skip to content

Commit

Permalink
fix(haiku): execve not allowed if other pthreads have already been cr…
Browse files Browse the repository at this point in the history
…eated

Co-authored-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
Signed-off-by: Anarchos <sylvain_kerjean@hotmail.com>
Signed-off-by: Sylvain78 <sylvain_kerjean@hotmail.com>
  • Loading branch information
Sylvain78 and anmonteiro committed Sep 29, 2024
1 parent 9f3cda7 commit 9321ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otherlibs/stdune/src/proc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let restore_cwd_and_execve prog argv ~env =
(* run at_exit before changing the working directory *)
Stdlib.do_at_exit ();
Sys.chdir (Path.External.to_string Path.External.initial_cwd);
if Sys.win32
if Sys.win32 || Platform.OS.value = Platform.OS.Haiku
then (
let pid = Unix.create_process_env prog argv env Unix.stdin Unix.stdout Unix.stderr in
match snd (Unix.waitpid [] pid) with
Expand Down

0 comments on commit 9321ade

Please sign in to comment.