From: Davin McCall Date: Sun, 5 Jun 2016 20:25:53 +0000 (+0100) Subject: Fix condition in is_log_flushed X-Git-Tag: v0.01~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b2a42f6f6decbe1a76983f2be7dc32f0b14808c9;p=oweals%2Fdinit.git Fix condition in is_log_flushed --- diff --git a/src/dinit-log.cc b/src/dinit-log.cc index 5d79971..cc278e9 100644 --- a/src/dinit-log.cc +++ b/src/dinit-log.cc @@ -182,7 +182,7 @@ void init_log(ServiceSet *sset) noexcept bool is_log_flushed() noexcept { - return log_stream[DLOG_CONS].current_index > 0; + return log_stream[DLOG_CONS].current_index == 0; } // Enable or disable console logging. If disabled, console logging will be disabled on the