ignore signal SIGPIPE on Darwin

This commit is contained in:
Andre 2014-12-30 23:39:43 +01:00
commit 85c22f3348
2 changed files with 6 additions and 2 deletions

View file

@ -1570,9 +1570,9 @@ else:
when defined(macosx):
# We can't use the NOSIGNAL flag in the ``send`` function, it has no effect
var
MSG_HAVEMORE* {.importc, header: "<sys/socket.h>".}: cint
MSG_NOSIGNAL* = MSG_HAVEMORE
MSG_NOSIGNAL* = 0'i32
else:
var
MSG_NOSIGNAL* {.importc, header: "<sys/socket.h>".}: cint