systemctl: Only wait when there's something to wait for.
authorFilipe Brandenburger <filbranden@google.com>
Fri, 20 Jul 2018 18:32:55 +0000 (11:32 -0700)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 21 Jul 2018 14:40:08 +0000 (23:40 +0900)
commit46f2579c2ac9f6780d5afec1000764defc6b581e
tree8af32066e9b715a0fea1bc25ccabf7d8422c68bd
parentbc21034688b60bd338b27b50ccc30f090c2a64c2
systemctl: Only wait when there's something to wait for.

Tested:
- `systemctl --wait start i-do-not-exist.service` does not wait.
- `systemctl --wait start i-do-not-exist.service valid-unit.service` does.
src/systemctl/systemctl.c