diff options
author | Wushin <pasekei@gmail.com> | 2015-08-16 14:02:35 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2015-08-16 14:02:35 -0500 |
commit | 1ecb7f8ed0091ecf5d63815006ca3e80ef6cfd97 (patch) | |
tree | be7db70b632cefd3a639ce3afe8d3f6f22bdbd6d /src/net/socket.cpp | |
parent | 98e908eec29e9b5b02fb7d7bf29886dfeb98c7dd (diff) | |
parent | f5764cf03f7ba94249a0e517f12d7918bb1ecd42 (diff) | |
download | tmwa-1ecb7f8ed0091ecf5d63815006ca3e80ef6cfd97.tar.gz tmwa-1ecb7f8ed0091ecf5d63815006ca3e80ef6cfd97.tar.bz2 tmwa-1ecb7f8ed0091ecf5d63815006ca3e80ef6cfd97.tar.xz tmwa-1ecb7f8ed0091ecf5d63815006ca3e80ef6cfd97.zip |
Merge pull request #132 from mekolat/pipe-closed
replace socket write with send with MSG_NOSIGNAL
Diffstat (limited to 'src/net/socket.cpp')
-rw-r--r-- | src/net/socket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/socket.cpp b/src/net/socket.cpp index fce45fb..7f71310 100644 --- a/src/net/socket.cpp +++ b/src/net/socket.cpp @@ -153,7 +153,7 @@ void recv_to_fifo(Session *s) static void send_from_fifo(Session *s) { - ssize_t len = s->fd.write(&s->wdata[0], s->wdata_size); + ssize_t len = s->fd.send(&s->wdata[0], s->wdata_size, MSG_NOSIGNAL); if (len > 0) { |