From: Davin McCall Date: Fri, 19 Jan 2018 20:15:05 +0000 (+0000) Subject: Move some #include's around to fix build issue. X-Git-Tag: v0.08~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0725181f074601a7de0b62ae2125da37d7152371;p=oweals%2Fdinit.git Move some #include's around to fix build issue. --- diff --git a/src/baseproc-service.cc b/src/baseproc-service.cc index ca16b1b..e66e1a5 100644 --- a/src/baseproc-service.cc +++ b/src/baseproc-service.cc @@ -2,6 +2,9 @@ #include #include +#include +#include +#include #include "dinit.h" #include "dinit-log.h" diff --git a/src/service.cc b/src/service.cc index 710d9e5..4047c6e 100644 --- a/src/service.cc +++ b/src/service.cc @@ -4,11 +4,8 @@ #include #include -#include -#include #include #include -#include #include #include "dinit.h" @@ -571,7 +568,9 @@ void service_record::release_console() noexcept bool service_record::interrupt_start() noexcept { - services->unqueue_console(this); + if (onstart_flags.starts_on_console) { + services->unqueue_console(this); + } return true; }