#include "unique_fd.hh" #include void unique_fd::reset(int fd) { if (fd_ != -1) close(fd_); fd_ = fd; }