Skip to content

Commit

Permalink
Attempt to fix broken sigpipe
Browse files Browse the repository at this point in the history
```
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
```
  • Loading branch information
stickz authored Sep 7, 2024
1 parent f6ef811 commit c9f61f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtorrent/src/rpc/scgi_task.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit c9f61f1

Please sign in to comment.