From a5c1e73fa8e004a93e37254a3582ba91048c4550 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Sun, 25 Aug 2024 13:41:56 +0200 Subject: libstore: add "is dependency" info to goal whether goal errors are reported via the `ex` member or just printed to the log depends on whether the goal is a toplevel goal or a dependency. if goals are aware of this themselves we can move error printing out of the worker loop, and since a running worker can only be used by running goals it's totally sufficient to keep a `Worker::running` flag for this Change-Id: I6b5cbe6eccee1afa5fde80653c4b968554ddd16f --- src/libstore/build/worker.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstore/build/worker.hh') diff --git a/src/libstore/build/worker.hh b/src/libstore/build/worker.hh index 7abb966f9..360366f8d 100644 --- a/src/libstore/build/worker.hh +++ b/src/libstore/build/worker.hh @@ -47,6 +47,8 @@ class Worker { private: + bool running = false; + /* Note: the worker should only have strong pointers to the top-level goals. */ -- cgit v1.2.3