aboutsummaryrefslogtreecommitdiff
path: root/lib/spawn.ml
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2019-11-21 15:38:39 +0100
committerEmilio Jesus Gallego Arias2019-11-21 15:38:39 +0100
commitd016f69818b30b75d186fb14f440b93b0518fc66 (patch)
tree32cd948273f79a2c01ad27b4ed0244ea60d7e2f9 /lib/spawn.ml
parentb680b06b31c27751a7d551d95839aea38f7fbea1 (diff)
[coq] Untabify the whole ML codebase.
We also remove trailing whitespace. Script used: ```bash for i in `find . -name '*.ml' -or -name '*.mli' -or -name '*.mlg'`; do expand -i "$i" | sponge "$i"; sed -e's/[[:space:]]*$//' -i.bak "$i"; done ```
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