diff options
| author | pooryorick <com.digitalsmarties@pooryorick.com> | 2021-06-23 18:49:57 (GMT) |
|---|---|---|
| committer | pooryorick <com.digitalsmarties@pooryorick.com> | 2021-06-23 18:49:57 (GMT) |
| commit | 458f106fdb95ed6844f88cc8aa7a08a173ac7586 (patch) | |
| tree | 81f9e02463a194f39bca80efcbe117459dedce9f /unix/tclKqueueNotfy.c | |
| parent | 501954d5aaf9401f977885fd340298baacde61a2 (diff) | |
| parent | 76238b9ab7a2734ae2ce170cb6305a4ad9d03ac3 (diff) | |
| download | tcl-458f106fdb95ed6844f88cc8aa7a08a173ac7586.zip tcl-458f106fdb95ed6844f88cc8aa7a08a173ac7586.tar.gz tcl-458f106fdb95ed6844f88cc8aa7a08a173ac7586.tar.bz2 | |
possible fix for [dcb888ed85adeb86] with kevent()
Diffstat (limited to 'unix/tclKqueueNotfy.c')
| -rw-r--r-- | unix/tclKqueueNotfy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/tclKqueueNotfy.c b/unix/tclKqueueNotfy.c index ab3732d..62d165e 100644 --- a/unix/tclKqueueNotfy.c +++ b/unix/tclKqueueNotfy.c @@ -182,7 +182,10 @@ PlatformEventsControl( if (fstat(filePtr->fd, &fdStat) == -1) { Tcl_Panic("fstat: %s", strerror(errno)); - } else if ((fdStat.st_mode & S_IFMT) == S_IFREG) { + } else if ((fdStat.st_mode & S_IFMT) == S_IFREG + || (fdStat.st_mode & S_IFMT) == S_ISDIR + || (fdStat.st_mode & S_IFMT) == S_ISLNK + ) { switch (op) { case EV_ADD: if (isNew) { |
