summaryrefslogtreecommitdiffstats
path: root/unix/tclKqueueNotfy.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-06-24 11:48:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-06-24 11:48:01 (GMT)
commitbcac36814646861ed47fe5783f4f41a3b8b39bb7 (patch)
tree7ca973efb8ccb85ac7a6f83a08e53f5c1fcacb2b /unix/tclKqueueNotfy.c
parent40048050f6179bf9debabe528e4aea7cbc2b05eb (diff)
parenta6691785d8bdaa339449e8df532a8b11a8690909 (diff)
downloadtcl-bcac36814646861ed47fe5783f4f41a3b8b39bb7.zip
tcl-bcac36814646861ed47fe5783f4f41a3b8b39bb7.tar.gz
tcl-bcac36814646861ed47fe5783f4f41a3b8b39bb7.tar.bz2
Merge 8.7
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 2f62378..381d350 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_IFDIR
+ || (fdStat.st_mode & S_IFMT) == S_IFLNK
+ ) {
switch (op) {
case EV_ADD:
if (isNew) {