mirror of
https://github.com/NixOS/nix.git
synced 2025-04-16 06:08:03 +00: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
)
This commit is contained in:
parent
71ab003a0c
commit
333479e6be
@ -122,7 +122,7 @@ public:
|
||||
|
||||
~MonitorFdHup()
|
||||
{
|
||||
close(notifyPipe.writeSide.get());
|
||||
notifyPipe.writeSide.close();
|
||||
thread.join();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user