2 ms·
I would be a bit more nuanced than that. I think it's OK if libraries change process state as long as they restore it as it was before the library call returns.
by JohnFen 3y ago
I would be a bit more nuanced than that. I think it's OK if libraries change process state as long as they restore it as it was before the library call returns. And as long as this behavior is clearly documented.
- teddyh 3y agoMany state changes are not as reversible as one might think. Even chdir() can be non-reversible if the mountpoint has since changed. And if the locale has not been set, and then a library sets it, AFAIK you can’t “unset” it, only set it to something else.