Tcl Source Code

View Ticket
Login
2021-06-23
18:55 Ticket [dcb888ed85] epoll, special files, directories, links, epoll_ctl operation not permitted, and abort status still Open with 3 other changes artifact: 8185473f63 user: pooryorick
18:49
possible fix for [dcb888ed85adeb86] with kevent() check-in: 06aaff9fd5 user: pooryorick tags: core-8-branch
2021-06-22
18:26
possible fix for [dcb888ed85adeb86] with kevent() Closed-Leaf check-in: 94c93c8507 user: pooryorick tags: bug-dcb888ed85adeb86
2021-06-19
14:16 Ticket [dcb888ed85] epoll, special files, directories, links, epoll_ctl operation not permitted, and abort status still Open with 3 other changes artifact: 5e0ef6e4b2 user: pooryorick
2021-06-17
10:26 Ticket [dcb888ed85]: 3 changes artifact: 49d2b5c787 user: pooryorick
10:25
tests for [dcb888ed85adeb86] check-in: 4b00bf6318 user: pooryorick tags: core-8-branch
08:54 Ticket [dcb888ed85] epoll, special files, directories, links, epoll_ctl operation not permitted, and abort status still Open with 5 other changes artifact: 8a8da0ca62 user: pooryorick
08:53
Fix for [dcb888ed85adeb86]: epoll, special files, directories, links, epoll_ctl operation not permit... check-in: 7587b7aeb9 user: pooryorick tags: core-8-branch
08:50 New ticket [dcb888ed85] epoll, special files, directories, links, epoll_ctl operation not permitted, and abort. artifact: 8d58bf31f8 user: pooryorick

Ticket UUID: dcb888ed85adeb863fc874dc60389f21c7aeafb5
Title: epoll, special files, directories, links, epoll_ctl operation not permitted, and abort
Type: Bug Version:
Submitter: pooryorick Created on: 2021-06-17 08:50:02
Subsystem: - New Builtin Commands Assigned To: pooryorick
Priority: 5 Medium Severity: Important
Status: Open Last Modified: 2021-06-23 18:55:17
Resolution: Fixed Closed By: nobody
    Closed on:
Description:

On a Linux build of core-8-branch, the each following scripts causes the interpreter to abort with the error, epoll_ctl: Operation not permitted:

set chan [open /dev/urandom rb]; chan event $chan readable [list put $chan]
vwait forever

set chan [open /]; chan event $chan readable [list put $chan]
vwait forever

set chan [open /path/to/somesymboliclink]; chan event $chan readable [list put $chan]
vwait forever

User Comments: pooryorick added on 2021-06-23 18:55:17:

Added directory and symbolic link handling to tclKqueueNotfy.c in [06aaff9fd52192db]


pooryorick added on 2021-06-19 14:16:44:

This fix should probably be further refined, and tclKqueueNotfy.c might need similar treatment.


pooryorick added on 2021-06-17 10:26:09:

Tests added in [dcb888ed85adeb86].


pooryorick added on 2021-06-17 08:54:06:

Fixed in [7587b7aeb9ce863c].