projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
track all live threads in an AS-safe, fully-consistent linked list
[oweals/musl.git]
/
src
/
process
/
fork.c
diff --git
a/src/process/fork.c
b/src/process/fork.c
index da074ae9c9b958be06cc0e6bbd4f0daa27524cbc..11286ef44e3bd5fd1069087f8741e5e0ff3fdcf0 100644
(file)
--- a/
src/process/fork.c
+++ b/
src/process/fork.c
@@
-27,6
+27,7
@@
pid_t fork(void)
self->tid = __syscall(SYS_gettid);
self->robust_list.off = 0;
self->robust_list.pending = 0;
self->tid = __syscall(SYS_gettid);
self->robust_list.off = 0;
self->robust_list.pending = 0;
+ self->next = self->prev = self;
libc.threads_minus_1 = 0;
}
__restore_sigs(&set);
libc.threads_minus_1 = 0;
}
__restore_sigs(&set);