I think an MT safe wrapper for getservbyname in tclUnixCompat.c like we have for the other _r variants would be better, but Zoran is really the right person to ask.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Of course. We should use MT-safe variants where
possible/available. This is not an easy task as you
need access to all possible OS combinations to
check if they all work as expected or not.
I can take a look on that. If you find any other
non-mt-safe call in Tcl, please report.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=90580
Originator: NO
I think an MT safe wrapper for getservbyname in tclUnixCompat.c like we have for the other _r variants would be better, but Zoran is really the right person to ask.
Logged In: YES
user_id=95086
Originator: NO
Of course. We should use MT-safe variants where
possible/available. This is not an easy task as you
need access to all possible OS combinations to
check if they all work as expected or not.
I can take a look on that. If you find any other
non-mt-safe call in Tcl, please report.
We're switching to using getaddrinfo() instead.