summaryrefslogtreecommitdiffstats
path: root/unix/tclEpollNotfy.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-05-19 05:18:47 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-05-19 05:18:47 (GMT)
commit1489bcfe34b0e81138fd726440870be0ba49c6da (patch)
treec7d508eeaf858cd6ef3495ff5c84873d8d915572 /unix/tclEpollNotfy.c
parent9e929c12d5f69c17dcd7dcc52c0766166331ea04 (diff)
parent4f1ea4779be85d8837f3a133b52d3b5aa9e53fda (diff)
downloadtcl-1489bcfe34b0e81138fd726440870be0ba49c6da.zip
tcl-1489bcfe34b0e81138fd726440870be0ba49c6da.tar.gz
tcl-1489bcfe34b0e81138fd726440870be0ba49c6da.tar.bz2
merge 8.7
Diffstat (limited to 'unix/tclEpollNotfy.c')
-rw-r--r--unix/tclEpollNotfy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/unix/tclEpollNotfy.c b/unix/tclEpollNotfy.c
index 9d0053c..076e02b 100644
--- a/unix/tclEpollNotfy.c
+++ b/unix/tclEpollNotfy.c
@@ -88,6 +88,7 @@ typedef struct {
LIST_HEAD(PlatformReadyFileHandlerList, FileHandler);
typedef struct ThreadSpecificData {
+ FileHandler *triggerFilePtr;
FileHandler *firstFileHandlerPtr;
/* Pointer to head of file handler list. */
struct PlatformReadyFileHandlerList firstReadyFileHandlerPtr;
@@ -306,6 +307,8 @@ PlatformEventsFinalize(
tsdPtr->triggerPipe[1] = -1;
}
#endif /* HAVE_EVENTFD */
+ ckfree(tsdPtr->triggerFilePtr->pedPtr);
+ ckfree(tsdPtr->triggerFilePtr);
if (tsdPtr->eventsFd > 0) {
close(tsdPtr->eventsFd);
tsdPtr->eventsFd = 0;
@@ -368,6 +371,7 @@ PlatformEventsInit(
}
filePtr->fd = tsdPtr->triggerPipe[0];
#endif
+ tsdPtr->triggerFilePtr = filePtr;
if ((tsdPtr->eventsFd = epoll_create1(EPOLL_CLOEXEC)) == -1) {
Tcl_Panic("epoll_create1: %s", strerror(errno));
}