aboutsummaryrefslogtreecommitdiff
path: root/stm
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2018-06-17 12:51:59 +0200
committerEmilio Jesus Gallego Arias2018-06-17 12:51:59 +0200
commit955e5a63cd2405632bb535b81bbad2fbe74d0394 (patch)
tree16006b5eabd40eeef4127e393bc0cf99a40561fd /stm
parent9f8345d6bddfe2965ef9dc0155092348d5166f51 (diff)
parentacc142fcee47cd8202dd1ad67e39fd569b09bbd7 (diff)
Merge PR #7828: [Spawn] no control sock on unix
Diffstat (limited to 'stm')
-rw-r--r--stm/spawned.ml4
1 files changed, 1 insertions, 3 deletions
diff --git a/stm/spawned.ml b/stm/spawned.ml
index 3833c8026e..a5d6ea96f9 100644
--- a/stm/spawned.ml
+++ b/stm/spawned.ml
@@ -28,13 +28,11 @@ let controller h pr pw =
prerr_endline "starting controller thread";
let main () =
let ic, oc = open_bin_connection h pr pw in
- let rec loop () =
+ let loop () =
try
match CThread.thread_friendly_input_value ic with
| Hello _ -> prerr_endline "internal protocol error"; exit 1
| ReqDie -> prerr_endline "death sentence received"; exit 0
- | ReqStats ->
- output_value oc (RespStats (Gc.quick_stat ())); flush oc; loop ()
with
| e ->
prerr_endline ("control channel broken: " ^ Printexc.to_string e);