summaryrefslogtreecommitdiff
path: root/src/socketengines/pipeengine_pipe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socketengines/pipeengine_pipe.cpp')
-rw-r--r--src/socketengines/pipeengine_pipe.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/socketengines/pipeengine_pipe.cpp b/src/socketengines/pipeengine_pipe.cpp
index dbded29b4..ac3a9cb2c 100644
--- a/src/socketengines/pipeengine_pipe.cpp
+++ b/src/socketengines/pipeengine_pipe.cpp
@@ -27,12 +27,13 @@ Pipe::Pipe() : Socket(-1), WritePipe(-1)
flags = fcntl(fds[1], F_GETFL, 0);
fcntl(fds[1], F_SETFL, flags | O_NONBLOCK);
- this->~Pipe();
+ this->~Socket();
this->Sock = fds[0];
this->WritePipe = fds[1];
- SocketEngine::AddSocket(this);
+ SocketEngine::Sockets[this->Sock] = this;
+ SocketEngine::Change(this, true, SF_READABLE);
}
Pipe::~Pipe()