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