From 22a32e8fd8b31f3d94c5b9ede6fb258b0d66950f Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 12 Aug 2009 19:56:43 +0000 Subject: 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 --- src/threadengines/threadengine_pthread.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3