From 1aa56ec942a57d9119c13ceb242ebeecafeb5ea5 Mon Sep 17 00:00:00 2001 From: ANR2ME Date: Mon, 4 Apr 2022 17:09:04 +0700 Subject: [PATCH] Added a note regarding SO_NOSIGPIPE --- Core/HLE/proAdhoc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/HLE/proAdhoc.cpp b/Core/HLE/proAdhoc.cpp index da86e77d0e..8960102b12 100644 --- a/Core/HLE/proAdhoc.cpp +++ b/Core/HLE/proAdhoc.cpp @@ -2038,6 +2038,7 @@ int setSockNoSIGPIPE(int sock, int flag) { // Set SIGPIPE when supported (ie. BSD/MacOS X) int opt = flag; #if defined(SO_NOSIGPIPE) + // Note: Linux might have SO_NOSIGPIPE defined too, but using it on setsockopt will result to EINVAL error return setsockopt(sock, SOL_SOCKET, SO_NOSIGPIPE, (void*)&opt, sizeof(opt)); #endif return -1;