]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Unify checking for machine1 systemd service
authorJán Tomko <jtomko@redhat.com>
Fri, 24 Jun 2016 15:38:33 +0000 (17:38 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 6 Mar 2017 14:34:33 +0000 (15:34 +0100)
commit18c145a0d37ef2ceea39bee2a31b9a722b742ac5
treea67e44acdb1de35bb7367a7105b8b57c53f027ab
parent39df53b901e8cd0b8c79004b0d433bfbf8feb2d3
Unify checking for machine1 systemd service

Both virSystemdTerminateMachine and virSystemdCreateMachine
propagate the error to tell between a non-systemd system
and a hard error.

In virSystemdGetMachineNameByPID both are treated the same,
but an error is ignored by the callers.

Split out the checks into a separate function.
src/util/virsystemd.c