From d55e3c46424f2bb1e68e55cbff69de6d43ee7110 Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 16 Sep 2020 09:45:28 -0600 Subject: [PATCH] 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 --- Libraries/LibIPC/Connection.h | 1 + 1 file changed, 1 insertion(+) 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(); }