From: Davin McCall Date: Fri, 1 Jan 2016 14:58:51 +0000 (+0000) Subject: Don't reque for console immediately if we acquire it when dependencies X-Git-Tag: v0.01~72 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a684b0b7261e20abddafb92962add105ec3e8793;p=oweals%2Fdinit.git Don't reque for console immediately if we acquire it when dependencies haven't started. The theory was that we could append to the end of the queue. In practice, though, we might be the only service in the queue, in which case we'll immediately acquire the console if we queue for it and so go into infinite recursion. --- diff --git a/service.cc b/service.cc index 2aa3285..346c0a8 100644 --- a/service.cc +++ b/service.cc @@ -252,7 +252,6 @@ void ServiceRecord::acquiredConsole() noexcept else { // We got the console but can't use it yet. releaseConsole(); - queueForConsole(); } }