aboutsummaryrefslogtreecommitdiff
path: root/devel/electron7/files/patch-net_socket_socket__posix.cc
blob: 5a61a7f4d8013cca2d9785f19246abfc64993b92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- net/socket/socket_posix.cc.orig	2019-12-12 12:39:54 UTC
+++ net/socket/socket_posix.cc
@@ -520,7 +520,7 @@ void SocketPosix::ReadCompleted() {
 }
 
 int SocketPosix::DoWrite(IOBuffer* buf, int buf_len) {
-#if defined(OS_LINUX) || defined(OS_ANDROID)
+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD)
   // Disable SIGPIPE for this write. Although Chromium globally disables
   // SIGPIPE, the net stack may be used in other consumers which do not do
   // this. MSG_NOSIGNAL is a Linux-only API. On OS X, this is a setsockopt on