summaryrefslogtreecommitdiffstats
path: root/unix/tclEpollNotfy.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2025-04-13 21:37:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2025-04-13 21:37:52 (GMT)
commitd46e9784ab0ff5b3e9bf35dc56c903fd9503c936 (patch)
tree13bbd0ee763654364e5f8fa55f2aa3aa3824cdba /unix/tclEpollNotfy.c
parent8b2d2887380bf8427f61d736f0f6ebd3ad88e193 (diff)
parentcfd25c802ae2a87b15dfc64dbf79e35eb1949896 (diff)
downloadtcl-d46e9784ab0ff5b3e9bf35dc56c903fd9503c936.zip
tcl-d46e9784ab0ff5b3e9bf35dc56c903fd9503c936.tar.gz
tcl-d46e9784ab0ff5b3e9bf35dc56c903fd9503c936.tar.bz2
Fully functional now, with a lot of examples for the improvement. Also, merge trunk
Diffstat (limited to 'unix/tclEpollNotfy.c')
-rw-r--r--unix/tclEpollNotfy.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/unix/tclEpollNotfy.c b/unix/tclEpollNotfy.c
index 0138a00..1446903 100644
--- a/unix/tclEpollNotfy.c
+++ b/unix/tclEpollNotfy.c
@@ -223,15 +223,15 @@ PlatformEventsControl(
*/
if (TclOSfstat(filePtr->fd, &fdStat) == -1) {
- /*
- * The tclEpollNotfy PlatformEventsControl function panics if the TclOSfstat
- * call returns -1, which occurs when using a websocket to a browser and the
- * browser page is refreshed. It seems the fstat call isn't doing anything
- * useful, in particular the contents of the statbuf aren't examined afterwards
- * on success and at best it changes the panic message. Instead we avoid the
- * panic at the cost of a memory leak.
- */
- return;
+ /*
+ * The tclEpollNotfy PlatformEventsControl function panics if the TclOSfstat
+ * call returns -1, which occurs when using a websocket to a browser and the
+ * browser page is refreshed. It seems the fstat call isn't doing anything
+ * useful, in particular the contents of the statbuf aren't examined afterwards
+ * on success and at best it changes the panic message. Instead we avoid the
+ * panic at the cost of a memory leak. See [010d8f38]
+ */
+ return;
} else if (epoll_ctl(tsdPtr->eventsFd, op, filePtr->fd, &newEvent) == -1) {
switch (errno) {
case EPERM: