summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-04-23 15:06:35 +0200
committerMax Kellermann <max@musicpd.org>2020-04-23 16:58:53 +0200
commit7ded244a6104cd52330118270e7dfbcfda931b10 (patch)
treef2ba3e64d5ad8d05382d006f922edef024463c58 /src/lib
parent8ed533acf3e9afad102d30c8978e200ccab314e5 (diff)
lib/nfs/Connection: pass POLLHUP and POLLERR to nfs_service()
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