]> git.ipfire.org Git - thirdparty/systemd.git/commit
varlink: add server write states to disconnect check
authorAnita Zhang <the.anitazha@gmail.com>
Wed, 9 Sep 2020 01:35:27 +0000 (18:35 -0700)
committerAnita Zhang <the.anitazha@gmail.com>
Wed, 7 Oct 2020 23:17:23 +0000 (16:17 -0700)
commite8e9227f5c3f8d47bec1d57a2801b22d53d0b341
tree054fa056683f4ed6e0e774ac127645fe4cf0a2d4
parent4d824a4e0b008a359adda0e960706316f207047e
varlink: add server write states to disconnect check

While a server is in the VARLINK_PENDING_METHOD or VARLINK_PENDING_METHOD_MORE
states and its write end is disconnected and it gets a POLLHUP, we
should disconnect since it can't write anymore.

In the case of systemd-oomd disconnecting while pid1 was pending-more, this
condition left pid1 in a state where it started throttling from
continually getting POLLHUP.
src/shared/varlink.c