mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Do not clobber %rdx.
Before calling vfork() syscall the linux user-space stores the current PID in the %rdx and restore it when the parent process will leave the kernel.
This commit is contained in:
parent
11725f2142
commit
f9e66923e5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218879
|
@ -104,7 +104,6 @@ linux_vfork(struct thread *td, struct linux_vfork_args *args)
|
|||
return (error);
|
||||
|
||||
td->td_retval[0] = p2->p_pid;
|
||||
td->td_retval[1] = 0;
|
||||
|
||||
error = linux_proc_init(td, td->td_retval[0], 0);
|
||||
if (error)
|
||||
|
|
Loading…
Reference in a new issue