mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
fix: be sure to block sigpipe in subthread
This commit is contained in:
parent
6d63840877
commit
fe114ffa8d
1 changed files with 1 additions and 0 deletions
|
|
@ -101,6 +101,7 @@ let call_full_inner ?(bufsize=2048) ?(stdin=`Str "") ?(env=Unix.environment()) ~
|
|||
let t_out =
|
||||
Thread.create
|
||||
(fun oc ->
|
||||
ignore (Thread.sigmask Unix.SIG_BLOCK [Sys.sigint;Sys.sigpipe]: _ list);
|
||||
out := read_all ~size:bufsize oc)
|
||||
oc in
|
||||
let err = read_all ~size:bufsize errc in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue