Only SyncSigTctl if there exists a proc fd.

This commit is contained in:
4lDO2
2025-04-07 17:38:34 +02:00
parent dc2988968e
commit cc6fadb8bb
+6 -6
View File
@@ -845,13 +845,13 @@ pub fn fork_inner(initial_rsp: *mut usize, args: &ForkArgs) -> Result<usize> {
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)?;
}