Re:Getaddrinfo() on glibc calls getenv(), oh boy
by xy2_ on Tuesday October 17, 2023 @04:08AM
(#37911918)
putenv is not lock free: https://github.com/illumos/illumos-gate/blob/master/usr/src/...
Re:Getaddrinfo() on glibc calls getenv(), oh boy
by cryptonector on Tuesday October 17, 2023 @11:31AM
(#37916722)
Ay, yes. Though it could be made lock-less.
Basically, if you `putenv()`, you commit to never freeing that memory.