chaps: assure that we get the D-Bus name we want
The old DBus::Connection::request_name method doesn't necessarily
succeed, and it doesn't tell us when it fails. This means that
chaps might keep running, even though no one can talk to it over
D-Bus.
Switch to the new acquire_name method, which actually reports
whether or not we got the name we asked for. Abort if we didn't
get the name, so that a useless process doesn't stick around.
BUG=chromium:364548
TEST=unit tests
Change-Id: I04c0777e757c2a52f49dcc807a45a49803a5e165
Reviewed-on: https://chromium-review.googlesource.com/197066
Tested-by: mukesh agrawal <quiche@chromium.org>
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: mukesh agrawal <quiche@chromium.org>
1 file changed