summaryrefslogtreecommitdiff
path: root/build.cc
diff options
context:
space:
mode:
Diffstat (limited to 'build.cc')
-rw-r--r--build.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.cc b/build.cc
index e057a02..445979e 100644
--- a/build.cc
+++ b/build.cc
@@ -54,6 +54,12 @@ int build(const Settings& settings,
auto task = getNextTask(all_tasks, dirtyTasks);
if(task == nullptr)
{
+ if(processes.empty() && !dirtyTasks.empty())
+ {
+ // No running processes, yet no process to run. This is a dead-lock...
+ std::cout << "Dead-lock detected.\n";
+ return 1;
+ }
break;
}