From 0725181f074601a7de0b62ae2125da37d7152371 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Fri, 19 Jan 2018 20:15:05 +0000 Subject: [PATCH] Move some #include's around to fix build issue. --- src/baseproc-service.cc | 3 +++ src/service.cc | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) 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; } -- 2.25.1