aboutsummaryrefslogtreecommitdiff
path: root/lib/spawn.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-11-21 16:46:11 +0100
committerGaëtan Gilbert2019-11-21 16:46:11 +0100
commitc0f34539209842735ccb93f3c069632b7eee4d6c (patch)
tree32cd948273f79a2c01ad27b4ed0244ea60d7e2f9 /lib/spawn.ml
parentb680b06b31c27751a7d551d95839aea38f7fbea1 (diff)
parentd016f69818b30b75d186fb14f440b93b0518fc66 (diff)
Merge PR #11010: [coq] Untabify the whole ML codebase.
Reviewed-by: SkySkimmer Reviewed-by: herbelin
Diffstat (limited to 'lib/spawn.ml')
-rw-r--r--lib/spawn.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spawn.ml b/lib/spawn.ml
index ea0cef54f6..046829802b 100644
--- a/lib/spawn.ml
+++ b/lib/spawn.ml
@@ -209,8 +209,8 @@ let spawn ?(prefer_sock=prefer_sock) ?(env=Unix.environment ())
p, cout
let rec wait p =
- (* On windows kill is not reliable, so wait may never return. *)
- if Sys.os_type = "Unix" then
+ (* On windows kill is not reliable, so wait may never return. *)
+ if Sys.os_type = "Unix" then
try snd (Unix.waitpid [] p.pid)
with
| Unix.Unix_error (Unix.EINTR, _, _) -> wait p
@@ -254,8 +254,8 @@ let kill ({ pid = unixpid; oob_req; oob_resp; cin; cout; alive } as p) =
with e -> prerr_endline ("kill: "^Printexc.to_string e) end
let rec wait p =
- (* On windows kill is not reliable, so wait may never return. *)
- if Sys.os_type = "Unix" then
+ (* On windows kill is not reliable, so wait may never return. *)
+ if Sys.os_type = "Unix" then
try snd (Unix.waitpid [] p.pid)
with
| Unix.Unix_error (Unix.EINTR, _, _) -> wait p