Skip to content

Commit a4f2721

Browse files
shymjmid
authored andcommitted
Reclaim all resources for the uname process
The missing `close_process_in` did leave a zombie around for the duration of the test
1 parent 29fb75c commit a4f2721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/stm_tests.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ end
288288
let uname_os () =
289289
let ic = Unix.open_process_in "uname -s" in
290290
let os = In_channel.input_line ic in
291-
In_channel.close ic;
291+
ignore (Unix.close_process_in ic);
292292
os
293293

294294
module Sys_seq = STM_sequential.Make(SConf)

0 commit comments

Comments
 (0)