@@ -137,9 +137,9 @@ let key =
137137let [@ poll error] [@ inline never] try_transition s from into =
138138 s.state == from
139139 && begin
140- s.state < - into;
141- true
142- end
140+ s.state < - into;
141+ true
142+ end
143143
144144let [@ poll error] [@ inline never] transition s into =
145145 let from = s.state in
@@ -282,16 +282,15 @@ let select_thread s =
282282 [ Sys. sigchld ]
283283 |> ignore
284284 end ;
285- begin
286- try
287- let pipe_inn, pipe_out = Unix. pipe ~cloexec: true () in
288- s.pipe_inn < - pipe_inn;
289- s.pipe_out < - pipe_out;
290- if try_transition s `Starting `Alive then
291- select_thread s (- 1.0 ) fos_empty fos_empty fos_empty
292- with exn ->
293- let bt = Printexc. get_raw_backtrace () in
294- s.exn_bt < - (exn , bt)
285+ begin try
286+ let pipe_inn, pipe_out = Unix. pipe ~cloexec: true () in
287+ s.pipe_inn < - pipe_inn;
288+ s.pipe_out < - pipe_out;
289+ if try_transition s `Starting `Alive then
290+ select_thread s (- 1.0 ) fos_empty fos_empty fos_empty
291+ with exn ->
292+ let bt = Printexc. get_raw_backtrace () in
293+ s.exn_bt < - (exn , bt)
295294 end ;
296295 transition s `Stopped |> ignore;
297296 if s.pipe_inn != Unix. stdin then Unix. close s.pipe_inn;
@@ -301,13 +300,13 @@ let[@poll error] [@inline never] try_configure ~intr_sig ~intr_sigs
301300 ~handle_sigchld ~ignore_sigpipe =
302301 config.intr_sigs == []
303302 && begin
304- config.bits < -
305- Bool. to_int handle_sigchld
306- lor (ignore_sigpipe_bit land - Bool. to_int ignore_sigpipe);
307- config.intr_sig < - intr_sig;
308- config.intr_sigs < - intr_sigs;
309- true
310- end
303+ config.bits < -
304+ Bool. to_int handle_sigchld
305+ lor (ignore_sigpipe_bit land - Bool. to_int ignore_sigpipe);
306+ config.intr_sig < - intr_sig;
307+ config.intr_sigs < - intr_sigs;
308+ true
309+ end
311310
312311let is_intr_sig signum = signum = config.intr_sig
313312
@@ -485,12 +484,11 @@ module Intr = struct
485484 (* [intr_pending] must be read before [r.unused]! *)
486485 r.unused && before.req != R req
487486 && begin
488- use before.req;
489- let after = { value = before.value + 1 ; req = R req } in
490- if Atomic. compare_and_set intr_pending before after then
491- after.value = 1
492- else incr_once req (Backoff. once backoff)
493- end
487+ use before.req;
488+ let after = { value = before.value + 1 ; req = R req } in
489+ if Atomic. compare_and_set intr_pending before after then after.value = 1
490+ else incr_once req (Backoff. once backoff)
491+ end
494492
495493 let intr_action trigger (Req r as req : [ `Req ] tdt ) id =
496494 match Computation. peek_exn r.computation with
0 commit comments