Tcl Source Code

Artifact [67200c8d72]
Login

Artifact 67200c8d72f925a81baca6aa86fb18427386ae5eab0ba540b6b1819c6f1e21c3:

Attachment "tcl.patch" to ticket [010d8f3885] added by stevel 2025-02-25 08:55:27.
Index: unix/tclEpollNotfy.c
==================================================================
--- unix/tclEpollNotfy.c
+++ unix/tclEpollNotfy.c
@@ -221,14 +221,13 @@
      * added or deleted from the list of FileHandlers associated with regular
      * files belonging to tsdPtr.
      */
 
     if (TclOSfstat(filePtr->fd, &fdStat) == -1) {
-	Tcl_Panic("fstat: %s", strerror(errno));
-    }
-
-   if (epoll_ctl(tsdPtr->eventsFd, op, filePtr->fd, &newEvent) == -1) {
+	return;
+	LIST_REMOVE(filePtr, readyNode);
+    } else if (epoll_ctl(tsdPtr->eventsFd, op, filePtr->fd, &newEvent) == -1) {
        switch (errno) {
 	    case EPERM:
 		switch (op) {
 		case EPOLL_CTL_ADD:
 		    if (isNew) {