From f1c7eff75b2d815fdf97fbf9eb639c6a9336800f Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 23 Oct 2026 15:53:12 +0100 Subject: [PATCH] Prevent absolutely ridiculous and silly linux behaviour to kill programs * By default on linux some send() errors will kill the process instead of returning an error code. --- renderdoc/os/posix/posix_network.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/renderdoc/os/posix/posix_network.cpp b/renderdoc/os/posix/posix_network.cpp index 1bb2234cb..3fcebe0d5 100644 --- a/renderdoc/os/posix/posix_network.cpp +++ b/renderdoc/os/posix/posix_network.cpp @@ -167,7 +167,11 @@ bool Socket::SendDataBlocking(const void *buf, uint32_t length) while(sent < length) { - ssize_t ret = send((int)socket, src, length - sent, 0); + int flags = 0; +#if ENABLED(RDOC_LINUX) + flags = MSG_NOSIGNAL; +#endif + ssize_t ret = send((int)socket, src, length - sent, flags); if(ret <= 0) {