File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ add_object_library(
101
101
libc.include.llvm-libc-macros.link_macros
102
102
libc.src.__support.threads.thread
103
103
libc.src.__support.OSUtil.osutil
104
+ libc.src.__support.OSUtil.pid
104
105
libc.src.stdlib.exit
105
106
libc.src.stdlib.atexit
106
107
libc.src.unistd.environ
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
#include " startup/linux/do_start.h"
9
9
#include " include/llvm-libc-macros/link-macros.h"
10
+ #include " src/__support/OSUtil/pid.h"
10
11
#include " src/__support/OSUtil/syscall.h"
11
12
#include " src/__support/threads/thread.h"
12
13
#include " src/stdlib/atexit.h"
@@ -64,6 +65,7 @@ static ThreadAttributes main_thread_attrib;
64
65
auto tid = syscall_impl<long >(SYS_gettid);
65
66
if (tid <= 0 )
66
67
syscall_impl<long >(SYS_exit, 1 );
68
+ ProcessIdentity::refresh_cache ();
67
69
main_thread_attrib.tid = static_cast <int >(tid);
68
70
69
71
// After the argv array, is a 8-byte long NULL value before the array of env
You can’t perform that action at this time.
0 commit comments