mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -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 =
|
let t_out =
|
||||||
Thread.create
|
Thread.create
|
||||||
(fun oc ->
|
(fun oc ->
|
||||||
|
ignore (Thread.sigmask Unix.SIG_BLOCK [Sys.sigint;Sys.sigpipe]: _ list);
|
||||||
out := read_all ~size:bufsize oc)
|
out := read_all ~size:bufsize oc)
|
||||||
oc in
|
oc in
|
||||||
let err = read_all ~size:bufsize errc in
|
let err = read_all ~size:bufsize errc in
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue