diff options
author | Luca Boccassi <bluca@debian.org> | 2022-02-09 11:48:30 +0000 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2022-03-10 14:43:14 +0000 |
commit | 95c81c55b2eb6063d79ad343738a6240bbccd100 (patch) | |
tree | 36d16e4ba22f12c9e8e85f6773c8f53823623ecc /src/core/unit.h | |
parent | bd844eae233b74ebf151ceefa0a5f026978bebab (diff) | |
download | systemd-95c81c55b2eb6063d79ad343738a6240bbccd100.tar.gz |
core: split $MONITOR_METADATA and return it only if a single unit triggers OnFailure/OnSuccess
Remove the list logic, and simply skip passing metadata if more than one
unit triggered an OnFailure/OnSuccess handler.
Instead of a single env var to loop over, provide each separate item
as its own variable.
Fixes https://github.com/systemd/systemd/issues/22370
Diffstat (limited to 'src/core/unit.h')
-rw-r--r-- | src/core/unit.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core/unit.h b/src/core/unit.h index 786c15d623..94f2180951 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -242,9 +242,6 @@ typedef struct Unit { /* Queue of units that have a BindTo= dependency on some other unit, and should possibly be shut down */ LIST_FIELDS(Unit, stop_when_bound_queue); - /* Queue of units which have triggered an OnFailure= or OnSuccess= dependency job. */ - LIST_FIELDS(Unit, triggered_by); - /* PIDs we keep an eye on. Note that a unit might have many * more, but these are the ones we care enough about to * process SIGCHLD for */ |