···9494 match Sys.command exec with
9595 | 0 ->
9696 let ic = open_in_bin tmp in
9797- let finally () = close_in_noerr ic in
9797+ let finally () =
9898+ close_in_noerr ic;
9999+ try Sys.remove tmp with Sys_error _ -> () (* not that important *)
100100+ in
98101 let len = in_channel_length ic in
99102 Fun.protect ~finally @@ fun () ->
100103 let stdout = really_input_string ic len in
101101- Sys.remove tmp;
102104 Ok stdout
103105 | exit -> Error (strf "%s: exited with %d" exec exit)
104106 with