ports/www/chromium/files/patch-net_socket_socket__posix.cc
Rene Ladan a8a9149eb3 www/chromium: update to 74.0.3729.157
Submitted by:	Matthias Wolf via GitHub (#150 #151)
MFH:		2019Q2
2019-05-24 12:34:58 +00:00

11 lines
548 B
C++

--- net/socket/socket_posix.cc.orig 2019-04-30 22:22:55 UTC
+++ net/socket/socket_posix.cc
@@ -569,7 +569,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