From c9f61f17fc2cfde5e69d6cddba26acbe16171913 Mon Sep 17 00:00:00 2001 From: stickz Date: Sat, 7 Sep 2024 15:48:51 -0400 Subject: [PATCH] Attempt to fix broken sigpipe ``` Thread 3 "rtorrent scgi" received signal SIGPIPE, Broken pipe. [Switching to Thread 0x7fffe635c6c0 (LWP 2443872)] 0x00007ffff7929a84 in send () from /lib/x86_64-linux-gnu/libc.so.6 ``` --- rtorrent/src/rpc/scgi_task.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtorrent/src/rpc/scgi_task.cc b/rtorrent/src/rpc/scgi_task.cc index 9f2e32902..160ba5082 100644 --- a/rtorrent/src/rpc/scgi_task.cc +++ b/rtorrent/src/rpc/scgi_task.cc @@ -200,7 +200,7 @@ SCgiTask::event_read() { void SCgiTask::event_write() { - int bytes = ::send(m_fileDesc, m_position, m_bufferSize, 0); + int bytes = ::send(m_fileDesc, m_position, m_bufferSize, MSG_NOSIGNAL); if (bytes == -1) { if (!rak::error_number::current().is_blocked_momentary())