summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2021-06-22 18:26:58 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2021-06-22 18:26:58 (GMT)
commit76238b9ab7a2734ae2ce170cb6305a4ad9d03ac3 (patch)
treefb8cc5f13db30834e8c6a4883cc9df44fc5dfeb7 /unix
parentcb849ffbeb780504abe902c115f24a18b37080b8 (diff)
downloadtcl-76238b9ab7a2734ae2ce170cb6305a4ad9d03ac3.zip
tcl-76238b9ab7a2734ae2ce170cb6305a4ad9d03ac3.tar.gz
tcl-76238b9ab7a2734ae2ce170cb6305a4ad9d03ac3.tar.bz2
possible fix for [dcb888ed85adeb86] with kevent()
Diffstat (limited to 'unix')
-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) {