1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 23:42:43 +01:00

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)

# Conflicts:
#	src/libutil/unix/monitor-fd.hh
This commit is contained in:
Jörg Thalheim 2025-03-24 12:09:39 +01:00
parent e1c559b27a
commit 76098180d2

View file

@ -123,7 +123,7 @@ public:
~MonitorFdHup()
{
close(notifyPipe.writeSide.get());
notifyPipe.writeSide.close();
thread.join();
}
};