mirror of
https://github.com/fluencelabs/musl
synced 2025-06-12 06:21:39 +00:00
clean up handling of thread/nothread mode, locking
This commit is contained in:
@ -8,7 +8,7 @@ pid_t fork(void)
|
||||
pid_t ret;
|
||||
if (libc.fork_handler) libc.fork_handler(-1);
|
||||
ret = syscall(SYS_fork);
|
||||
if (libc.lock && !ret) {
|
||||
if (libc.threaded && !ret) {
|
||||
pthread_t self = __pthread_self();
|
||||
self->tid = self->pid = syscall(SYS_getpid);
|
||||
libc.threads_minus_1 = 0;
|
||||
|
Reference in New Issue
Block a user