Skip to content
Tcl Source Code Artifact [8c833ee4e9]
Login

Artifact [8c833ee4e9]

Artifact 8c833ee4e9dd8b668b51fc2ab02b531f3670ebe2efbad979aea6f9fd6cdcdcf9:

Ticket change [8c833ee4e9] - New ticket [7aa8fd34c4e8ed00|7aa8fd34c4] <i>epoll notifier spins and never reports writable after EPOLLERR</i>. by serhiy.storchaka on 2026-10-16 21:46:10.
D 2026-10-16T21:46:10.075
J cmimetype text/x-fossil-wiki
J comment On\sLinux\s(epoll\snotifier,\s8.7\sand\slater),\sa\swritable\shandler\son\sa\spipe\swhose\sreader\shas\sexited\snever\sfires:\sEPOLLERR\sis\stranslated\sonly\sto\sTCL_EXCEPTION,\sand\sthe\slevel-triggered\sevent\swakes\sepoll_wait()\sagain\sat\sonce,\sso\sthe\sprocess\sspins\sat\s100%\sCPU.\sA\sbackground\sflush\sto\ssuch\sa\spipe\snever\sends,\sand\s<nowiki>[close]</nowiki>\sreports\sno\serror\salthough\sthe\sdata\swas\slost.\n\n<verbatim>\nset\sf\s[open\s|[list\s[info\snameofexecutable]\sexit.tcl]\sw]\s\s\s;#\schild\sexits\sat\sonce\nfconfigure\s$f\s-blocking\s0\nputs\s-nonewline\s$f\s[string\srepeat\sx\s300000]\ncatch\s{flush\s$f}\nchan\sevent\s$f\swritable\s{set\sw\swritable}\nafter\s3000\s{set\sw\stimeout}\nvwait\sw\s\s\s;#\s8.6:\swritable\sat\sonce,\sclose\sgives\s"broken\spipe";\s9.x:\stimeout,\sclose\sgives\sno\serror\n</verbatim>\n\nselect()\sreports\ssuch\sa\sdescriptor\sas\swritable.\sThe\scode\sis\sfrom\s[858569fb04].
J foundin 9.0.5,\s9.1.0
J login serhiy.storchaka
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter serhiy.storchaka
J subsystem 01.\sNotifier
J title epoll\snotifier\sspins\sand\snever\sreports\swritable\safter\sEPOLLERR
J type Bug
K 7aa8fd34c4e8ed00e73e06aef189fae1b092d1c4
U serhiy.storchaka
Z 2fd23eb4bafcea27e70f584c9de5b6cb