blob: 846736d17fc76f2c5349862f72a770a2bb1283cb [file] [log] [blame]
#include "aos/scoped/scoped_fd.h"
#include "glog/logging.h"
namespace aos {
void ScopedFD::Close() {
if (fd_ != -1) {
if (close(fd_) == -1) {
PLOG(WARNING) << "close(" << fd_ << ") failed";
}
}
}
} // namespace aos