Skip to content

Provide close2proc function to prevent tcl9 from crashing.#412

Closed
hzeller wants to merge 1 commit into
parallaxsw:masterfrom
hzeller:feature-20260401-close2proc
Closed

Provide close2proc function to prevent tcl9 from crashing.#412
hzeller wants to merge 1 commit into
parallaxsw:masterfrom
hzeller:feature-20260401-close2proc

Conversation

@hzeller
Copy link
Copy Markdown
Contributor

@hzeller hzeller commented Apr 1, 2026

Tcl 9 does not test if the close2Proc function pointer is non-null, but calls it unconditionally:
https://github.com/tcltk/tcl/blob/core-9-0-3/generic/tclIO.c#L384

So we need to provide a non-null function pointer for our code to not crash with Tcl9

Tcl 9 does not test if the close2Proc function pointer is non-null,
but calls it unconditionally:
https://github.com/tcltk/tcl/blob/core-9-0-3/generic/tclIO.c#L384

So we need to provide a non-null function pointer for our code
to not crash with Tcl9

Signed-off-by: Henner Zeller <h.zeller@acm.org>
@hzeller
Copy link
Copy Markdown
Contributor Author

hzeller commented Apr 1, 2026

Here, I implemented it with an empty function, but it looks more appropriate to actually call the code from the original encapCloseProc(). Awaiting review advise.

@hzeller
Copy link
Copy Markdown
Contributor Author

hzeller commented Apr 2, 2026

closing as I will combine all Tcl9 compatibility changes in one PR.

@hzeller hzeller closed this Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant