diff options
author | pooryorick <com.digitalsmarties@pooryorick.com> | 2021-06-22 18:26:58 (GMT) |
---|---|---|
committer | pooryorick <com.digitalsmarties@pooryorick.com> | 2021-06-22 18:26:58 (GMT) |
commit | 76238b9ab7a2734ae2ce170cb6305a4ad9d03ac3 (patch) | |
tree | fb8cc5f13db30834e8c6a4883cc9df44fc5dfeb7 /unix | |
parent | cb849ffbeb780504abe902c115f24a18b37080b8 (diff) | |
download | tcl-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.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) { |