diff --git a/master.c b/master.c index 05d3a04..b4b2f68 100644 --- a/master.c +++ b/master.c @@ -89,6 +89,7 @@ static int open_log(const char *path) log_fd = fd; rotate_log(); + log_written = (size_t)lseek(log_fd, 0, SEEK_CUR); return fd; }