MonitorFdHup::~MonitorFdHup: use proper close method instead of libc close()

Otherwise closing it again will cause an EBADF in the AutoCloseFd class.

(cherry picked from commit 87a34a45ff)
This commit is contained in:
Jörg Thalheim authored and Mergify committed 2025-03-24 12:16:00 +00:00
1 parent 71ab003a0c
commit 333479e6be
1 file changed
+1 -1
+1 -1
View File
@@ -122,7 +122,7 @@ public:
~MonitorFdHup()
{
close(notifyPipe.writeSide.get());
notifyPipe.writeSide.close();
thread.join();
}
};