3 ms·
There has to be some sort of nuance regarding why this seemingly simple fix hasn't been made yet. Changing from crashing to blocking doesn't seem like a big br
by alkonaut 2y ago
There has to be some sort of nuance regarding why this seemingly simple fix hasn't been made yet. Changing from crashing to blocking doesn't seem like a big breaking change.
- account42 2y agoBecause it doesn't actually solve anything: You're still replacing whatever getenv returned from under the nose the program code - if that happens in another thread or in a signal handler in the same thread doesn't make any difference. And that's before you even get to the `extern char *environ` global.
- xxs 2y agoB/c you never need setenv outside a single threaded command line utilities, and even then it's questionable.