提交 4ec07e1f 编写于 作者: R Rich Felker

ensure in fork that child gets its own new robust mutex list

上级 94a0171d
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册