diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-12-15 12:55:59 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-12-15 12:55:59 (GMT) |
commit | c576cbec93fdeaba19970c8f94a26d68c9cc4454 (patch) | |
tree | 7c4312eacbc921feb888e783a5537487d0b884a3 /unix/tclUnixNotfy.c | |
parent | a69614b432b2cf0d9fdeb9afcff304bad9b9e51e (diff) | |
parent | 556dc3036e36d2449fe4feaece94487adfd745b8 (diff) | |
download | tcl-c576cbec93fdeaba19970c8f94a26d68c9cc4454.zip tcl-c576cbec93fdeaba19970c8f94a26d68c9cc4454.tar.gz tcl-c576cbec93fdeaba19970c8f94a26d68c9cc4454.tar.bz2 |
merge core-8-branch. Fully functioning now, including with the new vc-reform implementation.
Diffstat (limited to 'unix/tclUnixNotfy.c')
-rw-r--r-- | unix/tclUnixNotfy.c | 6 |
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) { |