Merge pull request #11 from talex5/sigpipe

Disable SIGPIPE
This commit is contained in:
Thomas Leonard 2021-04-14 09:37:18 +01:00 committed by GitHub
commit 1d9823f190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,9 @@
let src = Logs.Src.create "eunix" ~doc:"Effect-based IO system"
module Log = (val Logs.src_log src : Logs.LOG)
(* SIGPIPE makes no sense in a modern application. *)
let () = Sys.(set_signal sigpipe Signal_ignore)
type amount = Exactly of int | Upto of int
type rw_req = {