]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/threadengines/threadengine_pthread.cpp
Move file inclusion logic into calcdep, and complain about ambiguous #include directi...
[user/henk/code/inspircd.git] / src / threadengines / threadengine_pthread.cpp
index a4f42eba9532b6df9c707f3488860742f9ee9b47..904efa0c9ce085e3c90ed66866f7d2273cd1a9d1 100644 (file)
@@ -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;
@@ -141,5 +141,4 @@ void SocketThread::NotifyParent()
 
 SocketThread::~SocketThread()
 {
-       delete signal.sock;
 }