Changeset View
Changeset View
Standalone View
Standalone View
lib/libthr/thread/thr_rtld.c
Show First 20 Lines • Show All 230 Lines • ▼ Show 20 Lines | _thr_rtld_init(void) | ||||
_malloc_postfork(); | _malloc_postfork(); | ||||
getpid(); | getpid(); | ||||
syscall(SYS_getpid); | syscall(SYS_getpid); | ||||
/* mask signals, also force to resolve __sys_sigprocmask PLT */ | /* mask signals, also force to resolve __sys_sigprocmask PLT */ | ||||
_thr_signal_block(curthread); | _thr_signal_block(curthread); | ||||
_rtld_thread_init(&li); | _rtld_thread_init(&li); | ||||
_thr_signal_unblock(curthread); | _thr_signal_unblock(curthread); | ||||
_thr_signal_block_check_fast(); | |||||
_thr_signal_block_setup(curthread); | |||||
uc_len = __getcontextx_size(); | uc_len = __getcontextx_size(); | ||||
uc = alloca(uc_len); | uc = alloca(uc_len); | ||||
getcontext(uc); | getcontext(uc); | ||||
__fillcontextx2((char *)uc); | __fillcontextx2((char *)uc); | ||||
} | } |