Skip to content

Commit

Permalink
Merge pull request #212 from dra27/windows
Browse files Browse the repository at this point in the history
No SIGPIPE on Windows
  • Loading branch information
talex5 authored Oct 29, 2020
2 parents 1812e36 + 22baf11 commit 4e1fdf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unix/unix_flow.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ open Lwt.Infix

(* Slightly rude to set signal handlers in a library, but SIGPIPE makes no sense
in a modern application. *)
let () = Sys.(set_signal sigpipe Signal_ignore)
let () = if not Sys.win32 then Sys.(set_signal sigpipe Signal_ignore)

type flow = {
fd : Lwt_unix.file_descr;
Expand Down

0 comments on commit 4e1fdf8

Please sign in to comment.