summaryrefslogtreecommitdiff
path: root/apps/osc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/osc.c')
-rw-r--r--apps/osc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/osc.c b/apps/osc.c
index 0291af3..887684d 100644
--- a/apps/osc.c
+++ b/apps/osc.c
@@ -85,8 +85,8 @@ int osc_handle_revents(osc_t* o, struct pollfd *pfds, int npfds)
{
assert(npfds == 1);
- if(pfds[0].revents & (POLLERR | POLLHUP)) {
- error(0, 0, "OSC: got POLLERR or POLLHUP");
+ if(pfds[0].revents & (POLLERR | POLLHUP | POLLNVAL)) {
+ error(0, 0, "OSC: got POLLERR, POLLHUP or POLLNVAL");
return -1;
}
if(!(pfds[0].revents & POLLIN))