diff --git a/stenotype/aio.cc b/stenotype/aio.cc index a3b4ec77..869da57a 100644 --- a/stenotype/aio.cc +++ b/stenotype/aio.cc @@ -188,7 +188,7 @@ Error Output::Rotate(const std::string& dirname, int64_t micros, std::string name = HiddenFile(dirname, micros); int fd = open(name.c_str(), O_CREAT | O_WRONLY | O_DSYNC | O_DIRECT, 0600); LOG(INFO) << "Opening packet file " << name << ": " << fd; - RETURN_IF_ERROR(Errno(fd), "open"); + RETURN_IF_ERROR(Errno(fd), (current_=NULL,"open") ); if (initial_size > 0) { LOG_IF_ERROR(Errno(fallocate(fd, 0, 0, initial_size)), "fallocate"); }