diff options
Diffstat (limited to 'src/process/fork.c')
-rw-r--r-- | src/process/fork.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/process/fork.c b/src/process/fork.c index 43c52bc4..8d676828 100644 --- a/src/process/fork.c +++ b/src/process/fork.c @@ -25,7 +25,8 @@ pid_t fork(void) if (libc.has_thread_pointer && !ret) { pthread_t self = __pthread_self(); self->tid = __syscall(SYS_gettid); - memset(&self->robust_list, 0, sizeof self->robust_list); + self->robust_list.off = 0; + self->robust_list.pending = 0; libc.threads_minus_1 = 0; } __restore_sigs(&set); |