Today I learned - getpid() in glibc used to cache the result (pid). This was removed in recent glibc because it was "not reliable". What? How can getpid value change over time???? https://sourceware.org/glibc/wiki/Release/2.25#pid_cache_removal …
-
-
Difference is that most functions that use tid aren't AS-safe, meaning use in contexts where weird forkings could have invalidated them is already UB.
-
For the few that are AS-safe (raise comes to mind) we mask signals and gettid.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.