blob: a570df0d951b05ca99ad344880a7e4f6b579ca8b [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) {
PLOG(WARNING, "close(%d) failed", fd_);
}
}
}
} // namespace aos