aboutsummaryrefslogtreecommitdiff
path: root/devel/electron7/files/patch-net_socket_socket__posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron7/files/patch-net_socket_socket__posix.cc')
-rw-r--r--devel/electron7/files/patch-net_socket_socket__posix.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron7/files/patch-net_socket_socket__posix.cc b/devel/electron7/files/patch-net_socket_socket__posix.cc
new file mode 100644
index 000000000000..5a61a7f4d801
--- /dev/null
+++ b/devel/electron7/files/patch-net_socket_socket__posix.cc
@@ -0,0 +1,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