* Followed Ingo's suggestion, and retricted sending SIGPIPE only to userland
API clients. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25246 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8e0a418b70
commit
18df7df8f7
@ -723,7 +723,9 @@ TCPEndpoint::SendData(net_buffer *buffer)
|
||||
if (fState == FINISH_SENT || fState == FINISH_ACKNOWLEDGED
|
||||
|| fState == CLOSING || fState == WAIT_FOR_FINISH_ACKNOWLEDGE
|
||||
|| fState == TIME_WAIT) {
|
||||
send_signal(find_thread(NULL), SIGPIPE);
|
||||
// we only send signals when called from userland
|
||||
if (gStackModule->is_syscall)
|
||||
send_signal(find_thread(NULL), SIGPIPE);
|
||||
return EPIPE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user