diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-27 18:05:48 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-27 19:10:18 +0200 |
commit | b9a0ba96240ed4bf4b013757308f82770531fcd2 (patch) | |
tree | aaad218463351ca4c535b7dad4e89e520f8296c2 /Libraries/LibC | |
parent | b9b74e355a70b279133967ae36f1ee023d2b1bff (diff) | |
download | serenity-b9a0ba96240ed4bf4b013757308f82770531fcd2.zip |
LibC: Make the getpid() cache process global (instead of thread-local)
Every thread in the process will have the same PID, after all.
Diffstat (limited to 'Libraries/LibC')
-rw-r--r-- | Libraries/LibC/unistd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibC/unistd.cpp b/Libraries/LibC/unistd.cpp index feee5faaea..76c0427031 100644 --- a/Libraries/LibC/unistd.cpp +++ b/Libraries/LibC/unistd.cpp @@ -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) { |