Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cryptonector
on Oct 17, 2023
|
parent
|
context
|
favorite
| on:
Getaddrinfo() on glibc calls getenv(), oh boy
On Solaris/Illumos `putenv()` and `getenv()` are lock-less and
really
fast.
Basically, if you `putenv()`, you commit to never freeing that memory.
xy2_
on Oct 17, 2023
[–]
putenv is not lock free:
https://github.com/illumos/illumos-gate/blob/master/usr/src/...
cryptonector
on Oct 17, 2023
|
parent
[–]
Ay, yes. Though it could be made lock-less.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Basically, if you `putenv()`, you commit to never freeing that memory.