1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

LibC: Make the getpid() cache process global (instead of thread-local)

Every thread in the process will have the same PID, after all.
This commit is contained in:
Andreas Kling 2020-07-27 18:05:48 +02:00
parent b9b74e355a
commit b9a0ba9624

View file

@ -47,7 +47,7 @@
extern "C" {
static __thread int s_cached_tid = 0;
static __thread int s_cached_pid = 0;
static int s_cached_pid = 0;
int chown(const char* pathname, uid_t uid, gid_t gid)
{