projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94a0171
)
ensure in fork that child gets its own new robust mutex list
author
Rich Felker
<dalias@aerifal.cx>
Sun, 17 Jul 2011 03:17:17 +0000
(23:17 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 17 Jul 2011 03:17:17 +0000
(23:17 -0400)
src/process/fork.c
patch
|
blob
|
history
diff --git
a/src/process/fork.c
b/src/process/fork.c
index a04e8929a70e10ce7e32e3e44834ebb9ab51e049..7530ff9376ce6689c9b34f6dd68c2cd5c3cc88bb 100644
(file)
--- a/
src/process/fork.c
+++ b/
src/process/fork.c
@@
-11,6
+11,7
@@
pid_t fork(void)
if (libc.main_thread && !ret) {
pthread_t self = __pthread_self();
self->tid = self->pid = syscall(SYS_getpid);
+ memset(&self->robust_list, 0, sizeof self->robust_list);
libc.threads_minus_1 = 0;
libc.main_thread = self;
}