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:
Dmitry Chagin 2011-02-20 07:58:30 +00:00
parent 11725f2142
commit f9e66923e5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218879

View file

@ -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)