Don't reque for console immediately if we acquire it when dependencies
authorDavin McCall <davmac@davmac.org>
Fri, 1 Jan 2016 14:58:51 +0000 (14:58 +0000)
committerDavin McCall <davmac@davmac.org>
Fri, 1 Jan 2016 14:58:51 +0000 (14:58 +0000)
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.

service.cc

index 2aa3285122c8e509fcaa9469430d3149c3205cd3..346c0a843ff36d81506054cfcb058f6f16d5e66f 100644 (file)
@@ -252,7 +252,6 @@ void ServiceRecord::acquiredConsole() noexcept
     else {
         // We got the console but can't use it yet.
         releaseConsole();
-        queueForConsole();
     }
 }