diff options
Diffstat (limited to 'build.cc')
-rw-r--r-- | build.cc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; } |