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:
parent
b9b74e355a
commit
b9a0ba9624
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue