]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: use ERFKILL instead of ESHUTDOWN for "unit masked"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 16 Apr 2016 22:41:34 +0000 (18:41 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 16 Apr 2016 22:41:34 +0000 (18:41 -0400)
commit76ec966f0e33685f8331603805c0349adceea836
treed79f2a3c3d98e5a34e19f684d1d9ef0b61cbafd2
parent6e1045e538a08ec68787359820a57b8b637ade70
tree-wide: use ERFKILL instead of ESHUTDOWN for "unit masked"

If the error code ever leaks (we print the strerror error instead of providing
our own), the message for ESHUTDOWN is "Cannot send after transport endpoint
shutdown", which can be misleading. In particular it suggest that some
mishandling of the dbus connection occured. Let's change that to ERFKILL which
has the advantage that a) it sounds implausible as actual error, b) has the
connotation of disabling something manually.
src/core/dbus-manager.c
src/core/transaction.c
src/shared/install.c
src/systemctl/systemctl.c
src/sysv-generator/sysv-generator.c
src/test/test-install-root.c