summaryrefslogtreecommitdiff
path: root/src/socketengines
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-11-23 16:56:06 -0500
committerAdam <Adam@anope.org>2012-11-23 16:56:06 -0500
commit36b1166cf6efddbc9a9abc8f00ad13bb0d4e56a9 (patch)
treea5883db9349de07b349647f467abfe05f8a2810e /src/socketengines
parent0e7bd9f3ba9ff8fe634fcf7d365ea2a984655d83 (diff)
Change the return type of ircdmessage to void now that we don't use it, add an ircd message module event, and a few more fixups
Diffstat (limited to 'src/socketengines')
-rw-r--r--src/socketengines/pipeengine_pipe.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/socketengines/pipeengine_pipe.cpp b/src/socketengines/pipeengine_pipe.cpp
index b05c50582..d56ffef55 100644
--- a/src/socketengines/pipeengine_pipe.cpp
+++ b/src/socketengines/pipeengine_pipe.cpp
@@ -27,7 +27,11 @@ Pipe::Pipe() : Socket(-1), write_pipe(-1)
flags = fcntl(fds[1], F_GETFL, 0);
fcntl(fds[1], F_SETFL, flags | O_NONBLOCK);
- this->~Pipe();
+ SocketEngine::Change(this, false, SF_READABLE);
+ SocketEngine::Change(this, false, SF_WRITABLE);
+ anope_close(this->sock);
+ this->io->Destroy();
+ SocketEngine::Sockets.erase(this->sock);
this->sock = fds[0];
this->write_pipe = fds[1];