4 ms·
How does an external process mess with env state? As far as I know, you pass the environment when doing the execvpe() and then you cannot touch it from outside
by ryao 2y ago
How does an external process mess with env state? As far as I know, you pass the environment when doing the execvpe() and then you cannot touch it from outside of the process anymore.
- jenadine 2y agoYou're correct. Parent comment is inaccurate. The problem is that a different library in the same process can use getenv without locking (or without locking the same lock as your code)