summaryrefslogtreecommitdiff
path: root/src/threadengines
diff options
context:
space:
mode:
Diffstat (limited to 'src/threadengines')
-rw-r--r--src/threadengines/threadengine_pthread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/threadengines/threadengine_pthread.cpp b/src/threadengines/threadengine_pthread.cpp
index 857cce522..904efa0c9 100644
--- a/src/threadengines/threadengine_pthread.cpp
+++ b/src/threadengines/threadengine_pthread.cpp
@@ -112,13 +112,13 @@ class ThreadSignalSocket : public BufferedSocket
void Notify()
{
char dummy = '*';
- send(send_fd, &dummy, 1, 0);
+ write(send_fd, &dummy, 1);
}
virtual bool OnDataReady()
{
char data;
- if (ServerInstance->SE->Recv(this, &data, 1, 0) <= 0)
+ if (read(this->fd, &data, 1) <= 0)
return false;
parent->OnNotify();
return true;