Tcl Source Code

View Ticket
Login
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].