summaryrefslogtreecommitdiffstats
path: root/unix/tclKqueueNotfy.c
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2021-06-23 18:49:57 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2021-06-23 18:49:57 (GMT)
commit458f106fdb95ed6844f88cc8aa7a08a173ac7586 (patch)
tree81f9e02463a194f39bca80efcbe117459dedce9f /unix/tclKqueueNotfy.c
parent501954d5aaf9401f977885fd340298baacde61a2 (diff)
parent76238b9ab7a2734ae2ce170cb6305a4ad9d03ac3 (diff)
downloadtcl-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.c5
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) {