aboutsummaryrefslogtreecommitdiffhomepage
path: root/stm
diff options
context:
space:
mode:
authorGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2018-06-15 13:54:26 +0200
committerGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2018-06-15 17:37:01 +0200
commitacc142fcee47cd8202dd1ad67e39fd569b09bbd7 (patch)
treea692900b2e76798618fd5ca04b44dc2c8131e980 /stm
parent31e13998542941040343cb81787a1d7c865d5b65 (diff)
[spawn] don't create a control socket on Unix (Fix #7713)
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 3833c8026..a5d6ea96f 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);