blob: a570df0d951b05ca99ad344880a7e4f6b579ca8b [file] [log] [blame]
Brian Silverman58899fd2019-03-24 11:03:11 -07001#include "aos/scoped/scoped_fd.h"
2
3#include "aos/logging/logging.h"
4
5namespace aos {
6
7void ScopedFD::Close() {
8 if (fd_ != -1) {
9 if (close(fd_) == -1) {
10 PLOG(WARNING, "close(%d) failed", fd_);
11 }
12 }
13}
14
15} // namespace aos