nspawn: simplify machine terminate bus call
authorLennart Poettering <lennart@poettering.net>
Fri, 5 Oct 2018 20:54:57 +0000 (22:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 9 Nov 2018 16:08:59 +0000 (17:08 +0100)
commit11d81e506ed68c6c5cebe319dc57a9a2fc4319c5
treeb6d79b20bc5579c6c8922e8af3c62df376c1e13a
parente5a2d8b5b56305bbb6dfc5a148ab1b73925c72db
nspawn: simplify machine terminate bus call

We have the machine name anyway, let's use TerminateMachine() on
machined's Manager object directly with it. That way it's a single
method call only, instead of two, to terminate the machine.
src/nspawn/nspawn-register.c
src/nspawn/nspawn-register.h
src/nspawn/nspawn.c