diff options
author | dgp <dgp@users.sourceforge.net> | 2018-05-11 11:30:33 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2018-05-11 11:30:33 (GMT) |
commit | 5eafb95b32b1132d639b964d75e65c95e288b265 (patch) | |
tree | 0ff9ccab6dd0b7fa9b669ccaf885d238c5c96a7b /unix/tclEpollNotfy.c | |
parent | 044bd42331f3ee7b4a0c5f0b43876071de79b25a (diff) | |
parent | 9cb3b15616e82cdd2edc695371adfeed5f4fb023 (diff) | |
download | tcl-5eafb95b32b1132d639b964d75e65c95e288b265.zip tcl-5eafb95b32b1132d639b964d75e65c95e288b265.tar.gz tcl-5eafb95b32b1132d639b964d75e65c95e288b265.tar.bz2 |
merge 8.7
Diffstat (limited to 'unix/tclEpollNotfy.c')
-rw-r--r-- | unix/tclEpollNotfy.c | 4 |
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)); } |