mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ public:
|
||||||
|
|
||||||
~MonitorFdHup()
|
~MonitorFdHup()
|
||||||
{
|
{
|
||||||
close(notifyPipe.writeSide.get());
|
notifyPipe.writeSide.close();
|
||||||
thread.join();
|
thread.join();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue