aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-03-09 22:36:47 -0800
committerJade Lovelace <lix@jade.fyi>2024-03-11 00:52:09 -0700
commit8be7030299699edd3732411d8d97f237a67fbc08 (patch)
tree118f6c5c8dfac9ae9c65f54c5eb5942323324b17 /src/libstore
parenta9b813cc3bcf89f03de0db96fc2e88d1c83b8303 (diff)
util.hh: split out signals stuff
Copies part of the changes of ac89bb064aeea85a62b82a6daf0ecca7190a28b7 Change-Id: I9ce601875cd6d4db5eb1132d7835c5bab9f126d8
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/binary-cache-store.cc1
-rw-r--r--src/libstore/build/substitution-goal.cc1
-rw-r--r--src/libstore/build/worker.cc1
-rw-r--r--src/libstore/filetransfer.cc1
-rw-r--r--src/libstore/gc.cc1
-rw-r--r--src/libstore/local-store.cc1
-rw-r--r--src/libstore/optimise-store.cc1
-rw-r--r--src/libstore/pathlocks.cc1
-rw-r--r--src/libstore/remote-store.cc1
-rw-r--r--src/libstore/sqlite.cc1
-rw-r--r--src/libstore/store-api.cc1
11 files changed, 11 insertions, 0 deletions
diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc
index b4fea693f..2e1f84859 100644
--- a/src/libstore/binary-cache-store.cc
+++ b/src/libstore/binary-cache-store.cc
@@ -10,6 +10,7 @@
#include "nar-info-disk-cache.hh"
#include "nar-accessor.hh"
#include "thread-pool.hh"
+#include "signals.hh"
#include "callback.hh"
#include <chrono>
diff --git a/src/libstore/build/substitution-goal.cc b/src/libstore/build/substitution-goal.cc
index e77772f96..d8d9ba283 100644
--- a/src/libstore/build/substitution-goal.cc
+++ b/src/libstore/build/substitution-goal.cc
@@ -1,6 +1,7 @@
#include "worker.hh"
#include "substitution-goal.hh"
#include "nar-info.hh"
+#include "signals.hh"
#include "finally.hh"
namespace nix {
diff --git a/src/libstore/build/worker.cc b/src/libstore/build/worker.cc
index d6bcba3ff..83167b0f3 100644
--- a/src/libstore/build/worker.cc
+++ b/src/libstore/build/worker.cc
@@ -3,6 +3,7 @@
#include "substitution-goal.hh"
#include "drv-output-substitution-goal.hh"
#include "local-derivation-goal.hh"
+#include "signals.hh"
#include "hook-instance.hh"
#include <poll.h>
diff --git a/src/libstore/filetransfer.cc b/src/libstore/filetransfer.cc
index 0d09fff98..5664579e7 100644
--- a/src/libstore/filetransfer.cc
+++ b/src/libstore/filetransfer.cc
@@ -3,6 +3,7 @@
#include "globals.hh"
#include "store-api.hh"
#include "s3.hh"
+#include "signals.hh"
#include "compression.hh"
#include "finally.hh"
#include "callback.hh"
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index ac61f7f53..bd9be52f3 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -1,6 +1,7 @@
#include "derivations.hh"
#include "globals.hh"
#include "local-store.hh"
+#include "signals.hh"
#include "finally.hh"
#include <functional>
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 78ca79c89..ecaab8f37 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -8,6 +8,7 @@
#include "references.hh"
#include "callback.hh"
#include "topo-sort.hh"
+#include "signals.hh"
#include "finally.hh"
#include "compression.hh"
diff --git a/src/libstore/optimise-store.cc b/src/libstore/optimise-store.cc
index 4a79cf4a1..e09072e90 100644
--- a/src/libstore/optimise-store.cc
+++ b/src/libstore/optimise-store.cc
@@ -1,6 +1,7 @@
#include "util.hh"
#include "local-store.hh"
#include "globals.hh"
+#include "signals.hh"
#include <cstdlib>
#include <cstring>
diff --git a/src/libstore/pathlocks.cc b/src/libstore/pathlocks.cc
index adc763e6a..955ae3a34 100644
--- a/src/libstore/pathlocks.cc
+++ b/src/libstore/pathlocks.cc
@@ -1,5 +1,6 @@
#include "pathlocks.hh"
#include "util.hh"
+#include "signals.hh"
#include "sync.hh"
#include <cerrno>
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index 58fac40dc..7572473cf 100644
--- a/src/libstore/remote-store.cc
+++ b/src/libstore/remote-store.cc
@@ -1,5 +1,6 @@
#include "serialise.hh"
#include "util.hh"
+#include "signals.hh"
#include "path-with-outputs.hh"
#include "gc-store.hh"
#include "remote-fs-accessor.hh"
diff --git a/src/libstore/sqlite.cc b/src/libstore/sqlite.cc
index 365794bd3..4bd425b46 100644
--- a/src/libstore/sqlite.cc
+++ b/src/libstore/sqlite.cc
@@ -1,6 +1,7 @@
#include "sqlite.hh"
#include "globals.hh"
#include "util.hh"
+#include "signals.hh"
#include "url.hh"
#include <sqlite3.h>
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 9a6c920f7..94202d46e 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -11,6 +11,7 @@
#include "archive.hh"
#include "callback.hh"
#include "remote-store.hh"
+#include "signals.hh"
// FIXME this should not be here, see TODO below on
// `addMultipleToStore`.
#include "worker-protocol.hh"