core: correct handling of "systemctl kill --kill-who=main-fail"
authorLennart Poettering <lennart@poettering.net>
Fri, 16 Oct 2020 15:16:23 +0000 (17:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 16 Oct 2020 15:19:20 +0000 (17:19 +0200)
commit2ae0508e6dab3bb61893132fa936c1f62af8aa29
treecdcdc629584b11548eb8d774a6a8fc4297777b31
parent8aff7ac4a7315ad7d4d1cf0c564885ba90d6818e
core: correct handling of "systemctl kill --kill-who=main-fail"

--kill-who=main-fail never worked correctly, due to a copy and paste
mistake in ac5e3a505e49c80b56c971a8fc13bacac961640d, where the same item
was listed twice. The mistake was
later noticed, but fixed incorrectly, in
201f0c916d8f65ad2595a651b1371fcd39a4cf55.

Let's list all *-fail types correctly, finally.

And while we are at it, add a nice comment and generate a prettier D-Bus
error about this.
src/core/unit.c