blob: 74f888203a6fcb026c9a8e910b83b8a01445498a [file] [log] [blame]
#include "aos/scoped/scoped_fd.h"
#include "aos/logging/logging.h"
namespace aos {
void ScopedFD::Close() {
if (fd_ != -1) {
if (close(fd_) == -1) {
AOS_PLOG(WARNING, "close(%d) failed", fd_);
}
}
}
} // namespace aos