Strongly typed languages ftw.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28338 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -732,7 +732,7 @@ TCPEndpoint::SendData(net_buffer *buffer)
|
|||||||
return EDESTADDRREQ;
|
return EDESTADDRREQ;
|
||||||
if (!is_writable(fState)) {
|
if (!is_writable(fState)) {
|
||||||
// we only send signals when called from userland
|
// we only send signals when called from userland
|
||||||
if (gStackModule->is_syscall)
|
if (gStackModule->is_syscall())
|
||||||
send_signal(find_thread(NULL), SIGPIPE);
|
send_signal(find_thread(NULL), SIGPIPE);
|
||||||
return EPIPE;
|
return EPIPE;
|
||||||
}
|
}
|
||||||
@@ -758,7 +758,7 @@ TCPEndpoint::SendData(net_buffer *buffer)
|
|||||||
|
|
||||||
if (!is_writable(fState)) {
|
if (!is_writable(fState)) {
|
||||||
// we only send signals when called from userland
|
// we only send signals when called from userland
|
||||||
if (gStackModule->is_syscall)
|
if (gStackModule->is_syscall())
|
||||||
send_signal(find_thread(NULL), SIGPIPE);
|
send_signal(find_thread(NULL), SIGPIPE);
|
||||||
return EPIPE;
|
return EPIPE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user