diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-07-16 23:17:17 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-07-16 23:17:17 -0400 |
commit | 4ec07e1f60128cdac63bd98e7091240d6e5d888c (patch) | |
tree | 0c4155b7d07e29784f89d83a7df928ed7380ff99 /src | |
parent | 94a0171d807dc94302d6505041fc58879c27f3bd (diff) | |
download | musl-4ec07e1f60128cdac63bd98e7091240d6e5d888c.tar.gz musl-4ec07e1f60128cdac63bd98e7091240d6e5d888c.tar.xz musl-4ec07e1f60128cdac63bd98e7091240d6e5d888c.zip |
ensure in fork that child gets its own new robust mutex list
Diffstat (limited to 'src')
-rw-r--r-- | src/process/fork.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/process/fork.c b/src/process/fork.c index a04e8929..7530ff93 100644 --- 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; } |