aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/SocketMonitor.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/event/SocketMonitor.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/event/SocketMonitor.cxx b/src/event/SocketMonitor.cxx
index 7c118cfd6..2b97059f7 100644
--- a/src/event/SocketMonitor.cxx
+++ b/src/event/SocketMonitor.cxx
@@ -152,6 +152,19 @@ SocketMonitor::Steal()
}
void
+SocketMonitor::Abandon()
+{
+ assert(IsDefined());
+
+#ifdef USE_EPOLL
+ fd = -1;
+ loop.Abandon(*this);
+#else
+ Steal();
+#endif
+}
+
+void
SocketMonitor::Close()
{
close_socket(Steal());