log_last
if (log_last(log, 1))
if (log_last(log, 0))
if (log_last(log, 1) || write(log->fd, buf, 8) != 8 ||