summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--unix/tclEpollNotfy.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/unix/tclEpollNotfy.c b/unix/tclEpollNotfy.c
index 088f314..9815fb0 100644
--- a/unix/tclEpollNotfy.c
+++ b/unix/tclEpollNotfy.c
@@ -220,7 +220,10 @@ PlatformEventsControl(
struct stat fdStat;
newEvent.events = 0;
- if (filePtr->mask & (TCL_READABLE | TCL_EXCEPTION)) {
+ if (filePtr->mask & TCL_EXCEPTION) {
+ newEvent.events |= EPOLLERR;
+ }
+ if (filePtr->mask & TCL_READABLE) {
newEvent.events |= EPOLLIN;
}
if (filePtr->mask & TCL_WRITABLE) {
@@ -241,9 +244,9 @@ PlatformEventsControl(
* associated with regular files belonging to tsdPtr.
*/
- if (fstat(filePtr->fd, &fdStat) == -1) {
+ if (0 && fstat(filePtr->fd, &fdStat) == -1) {
Tcl_Panic("fstat: %s", strerror(errno));
- } else if ((fdStat.st_mode & S_IFMT) == S_IFREG) {
+ } else if (0 && (fdStat.st_mode & S_IFMT) == S_IFREG) {
switch (op) {
case EPOLL_CTL_ADD:
if (isNew) {