Manifest of check-in
[f20443fb11]
- Fix [f1a25e8a50]: New thread panics "Tcl_InitNotifier: could not create trigger eventfd" when stdin is closed. With stdin closed, eventfd() returns fd 0, which the epoll notifier treated as an error. TclpFinalizeNotifier() in the epoll and kqueue notifiers also did not close a trigger or epoll/kqueue fd that is 0, so the kqueue notifier leaked it.
by
serhiy.storchaka on
2026-11-14 17:50:35.
B 9ba82c1fb39baa410ab18e31d6120c403b858781c2f0a59de28678d981e462de
C Fix\s[f1a25e8a50]:\sNew\sthread\spanics\s"Tcl_InitNotifier:\scould\snot\screate\strigger\seventfd"\swhen\sstdin\sis\sclosed.\sWith\sstdin\sclosed,\seventfd()\sreturns\sfd\s0,\swhich\sthe\sepoll\snotifier\streated\sas\san\serror.\sTclpFinalizeNotifier()\sin\sthe\sepoll\sand\skqueue\snotifiers\salso\sdid\snot\sclose\sa\strigger\sor\sepoll/kqueue\sfd\sthat\sis\s0,\sso\sthe\skqueue\snotifier\sleaked\sit.
D 2026-11-14T17:50:35.091
F tests/thread.test e70feb2ab5ed4b12ae1e595f4090e113581426866f029a20846b684fab0b728f
F unix/tclEpollNotfy.c c1245ef32e3a9cbba772648e21485f911d767ba4d6a2d3b43fcc557a4958f910
F unix/tclKqueueNotfy.c e038b8ae335b22a56f752728f7deca1a74dc591d1b5c371aac5f27b02a260826
P 9ba82c1fb39baa410ab18e31d6120c403b858781c2f0a59de28678d981e462de
R 56099297bf20e968151730c6b6aabfd9
T *branch * notifier-fd-zero
T *sym-notifier-fd-zero *
T -sym-main *
T -sym-trunk *
U serhiy.storchaka
Z ff6ff3965c064e396010daf2b8e72ea6