summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2020-09-16 09:45:28 -0600
committerAndreas Kling <kling@serenityos.org>2020-09-16 17:50:43 +0200
commitd55e3c46424f2bb1e68e55cbff69de6d43ee7110 (patch)
tree7446329ba7b4918307fbc7a8d518c70a88079b29
parentd67553e128200d4a8adf85a680f34425a70c42ef (diff)
downloadserenity-d55e3c46424f2bb1e68e55cbff69de6d43ee7110.zip
LibIPC: Disable Notifier before closing socket
Because we're closing a file descriptor, we need to disable any Notifier that is using it so that the EventLoop does not use invalid file descriptors. Fixes #3508
-rw-r--r--Libraries/LibIPC/Connection.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibIPC/Connection.h b/Libraries/LibIPC/Connection.h
index 452bd22a02..c02b633489 100644
--- a/Libraries/LibIPC/Connection.h
+++ b/Libraries/LibIPC/Connection.h
@@ -115,6 +115,7 @@ public:
void shutdown()
{
+ m_notifier->close();
m_socket->close();
die();
}