summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/nfs/Connection.cxx4
1 files changed, 3 insertions, 1 deletions
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