On Wed, Jun 10, 2015 at 11:51 AM, Jérôme Duval <jerome.duval@xxxxxxxxx> wrote:
@@ -794,12 +796,11 @@ TCPEndpoint::SendData(net_buffer *buffer)
return EDESTADDRREQ;
if (!is_writable(fState) && !is_establishing(fState)) {
// we only send signals when called from userland
- if (gStackModule->is_syscall())
+ if (gStackModule->is_syscall() && (flags & MSG_NOSIGNAL !=
0))
send_signal(find_thread(NULL), SIGPIPE);
Isn't it reversed? I would have used == 0.