diff --git a/redox-rt/src/proc.rs b/redox-rt/src/proc.rs index fc4e753d84..173d6b0aed 100644 --- a/redox-rt/src/proc.rs +++ b/redox-rt/src/proc.rs @@ -845,13 +845,13 @@ pub fn fork_inner(initial_rsp: *mut usize, args: &ForkArgs) -> Result { CallFlags::empty(), &[ProcCall::SyncSigPctl as usize], )?; + thread_call( + *new_thr_fd, + &mut [], + CallFlags::empty(), + &[ThreadCall::SyncSigTctl as usize], + )?; } - thread_call( - *new_thr_fd, - &mut [], - CallFlags::empty(), - &[ThreadCall::SyncSigTctl as usize], - )?; } copy_env_regs(**cur_thr_fd, *new_thr_fd)?; }