diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-10-10 17:49:17 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-10-10 17:49:17 +0200 |
commit | 3201a1ddb17ddac985fd06800628b0b54fc0a692 (patch) | |
tree | a9228d277bee909bc1b4151058253c6eae15606e /apps/osc.c | |
parent | got rid of threads entirely (diff) |
improved poll() handling
Diffstat (limited to 'apps/osc.c')
-rw-r--r-- | apps/osc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) |