summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixNotfy.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-01-12 16:30:03 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-01-12 16:30:03 (GMT)
commitf0b9b9fbb6d6275b0be9047cee3a2fbdfb9ecdd4 (patch)
treec8f5508e0e76991c70aa2c0d58514db18ed3aeb5 /unix/tclUnixNotfy.c
parent88233497abccd1215abfc8e09aeda7bf4fea2931 (diff)
parent244885a03e8d66f5500058eaf820d6b47f292007 (diff)
downloadtcl-f0b9b9fbb6d6275b0be9047cee3a2fbdfb9ecdd4.zip
tcl-f0b9b9fbb6d6275b0be9047cee3a2fbdfb9ecdd4.tar.gz
tcl-f0b9b9fbb6d6275b0be9047cee3a2fbdfb9ecdd4.tar.bz2
merge core-8-branch
Diffstat (limited to 'unix/tclUnixNotfy.c')
-rw-r--r--unix/tclUnixNotfy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c
index 5bc753a..b7df740 100644
--- a/unix/tclUnixNotfy.c
+++ b/unix/tclUnixNotfy.c
@@ -532,13 +532,13 @@ TclUnixWaitForFile(
numFound = poll(pollFds, 1, pollTimeout);
if (numFound == 1) {
result = 0;
- if (pollFds[0].events & (POLLIN | POLLHUP)) {
+ if (pollFds[0].revents & (POLLIN | POLLHUP)) {
result |= TCL_READABLE;
}
- if (pollFds[0].events & POLLOUT) {
+ if (pollFds[0].revents & POLLOUT) {
result |= TCL_WRITABLE;
}
- if (pollFds[0].events & POLLERR) {
+ if (pollFds[0].revents & POLLERR) {
result |= TCL_EXCEPTION;
}
if (result) {