varlink: allow using varlink_wait() even with a server
authorLennart Poettering <lennart@poettering.net>
Wed, 29 May 2019 11:56:27 +0000 (13:56 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 4 Jul 2019 03:35:52 +0000 (12:35 +0900)
commited9aa225e884dc2a0c857ed1603d3bc3a3758c06
tree7c829ab069e47a13417fb08665644dd08846132d
parentca5e7694bd10ac59b133e5210d439f2f73793cc9
varlink: allow using varlink_wait() even with a server

This call can be useful even if a server object is declared.

(Originally this was not supported, because a server typically needs to
handle multiple connections, and thus a synchronous wait on one would
starve the others out. But in some cases it might make sense to have
varlink point-to-point connections — i.e. where the server only handles
a single connection ever — and there it makes sense to synchronously
wait on the one connection).
src/shared/varlink.c