From 7ded244a6104cd52330118270e7dfbcfda931b10 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Apr 2020 15:06:35 +0200 Subject: lib/nfs/Connection: pass POLLHUP and POLLERR to nfs_service() --- src/lib/nfs/Connection.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx index 6b61f8c2b..05dbab516 100644 --- a/src/lib/nfs/Connection.cxx +++ b/src/lib/nfs/Connection.cxx @@ -191,7 +191,9 @@ static constexpr int events_to_libnfs(unsigned i) noexcept { return ((i & SocketMonitor::READ) ? POLLIN : 0) | - ((i & SocketMonitor::WRITE) ? POLLOUT : 0); + ((i & SocketMonitor::WRITE) ? POLLOUT : 0) | + ((i & SocketMonitor::HANGUP) ? POLLHUP : 0) | + ((i & SocketMonitor::ERROR) ? POLLERR : 0); } NfsConnection::~NfsConnection() noexcept -- cgit v1.2.3