diff options
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r-- | src/libutil/util.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 3cf5eb0b1..d47d7e0be 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -332,7 +332,7 @@ class AutoCloseFD int fd; public: AutoCloseFD(); - AutoCloseFD(int fd); + explicit AutoCloseFD(int fd); AutoCloseFD(const AutoCloseFD & fd) = delete; AutoCloseFD(AutoCloseFD&& fd); ~AutoCloseFD(); @@ -343,6 +343,7 @@ public: int release(); void close(); void fsync(); + void reset() { *this = {}; } }; |