From ddf78624b3d553b586f097de09398933e38cafc3 Mon Sep 17 00:00:00 2001 From: Mario Maz Date: Fri, 14 Aug 2020 11:05:19 +0200 Subject: [PATCH] fixup! bcl: add InterfaceStateManager and its dependencies --- .../beerocks/bcl/include/bcl/network/file_descriptor_impl.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/beerocks/bcl/include/bcl/network/file_descriptor_impl.h b/common/beerocks/bcl/include/bcl/network/file_descriptor_impl.h index c7f3c3c303..6e5b31f3da 100644 --- a/common/beerocks/bcl/include/bcl/network/file_descriptor_impl.h +++ b/common/beerocks/bcl/include/bcl/network/file_descriptor_impl.h @@ -127,7 +127,11 @@ class FileDescriptorImpl : public FileDescriptor { } int rc = ::close(m_fd); - m_fd = FileDescriptor::invalid_descriptor; + if (0 != rc) { + LOG(ERROR) << "Unable to close descriptor: " << strerror(errno); + } + + m_fd = FileDescriptor::invalid_descriptor; return (0 == rc); }