summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-08-12 19:56:43 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-08-12 19:56:43 +0000
commit22a32e8fd8b31f3d94c5b9ede6fb258b0d66950f (patch)
treeb59d92213cfb5347daf02c8870e1a24768048d84 /src
parent6cfd6ad816d597a88abcbe6c6dc9d3e507aa539c (diff)
Change to using read/write not send/recv on the ThreadSignalSocket pipe
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11506 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-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;