From 19a1fe670acb3ab9ead0fe31859ca7d4fe40dd54 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 13 Apr 2015 19:24:51 -0400 Subject: remove remnants of support for running in no-thread-pointer mode since 1.1.0, musl has nominally required a thread pointer to be setup. most of the remaining code that was checking for its availability was doing so for the sake of being usable by the dynamic linker. as of commit 71f099cb7db821c51d8f39dfac622c61e54d794c, this is no longer necessary; the thread pointer is now valid before any libc code (outside of dynamic linker bootstrap functions) runs. this commit essentially concludes "phase 3" of the "transition path for removing lazy init of thread pointer" project that began during the 1.1.0 release cycle. --- src/process/fork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/process/fork.c') diff --git a/src/process/fork.c b/src/process/fork.c index 8d676828..b96f0024 100644 --- a/src/process/fork.c +++ b/src/process/fork.c @@ -22,7 +22,7 @@ pid_t fork(void) #else ret = syscall(SYS_clone, SIGCHLD, 0); #endif - if (libc.has_thread_pointer && !ret) { + if (!ret) { pthread_t self = __pthread_self(); self->tid = __syscall(SYS_gettid); self->robust_list.off = 0; -- cgit v1.2.1