]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/varlink.c
varlink: disconnect varlink link in one more case
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Oct 2021 15:29:48 +0000 (17:29 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 22 Oct 2021 12:37:31 +0000 (21:37 +0900)
commit7c26a631ad8bf91016db156b7d299ca68fd7866e
tree17786eae3d2145864c7182ec28498174ee5ae02a
parente0e914eaf86e2d10454f7b9dae1295d3f3213a49
varlink: disconnect varlink link in one more case

Previously we'd possibly see POLLHUP on a varlink link, and continue to
run epoll on it even though we have nothing to read nor write anymore.

Let's fix that, and once we know that there's nothing to write anymore
(or we saw a write error already) we'll disconnect after POLLHUP.

Fixes: #20062
src/shared/varlink.c