aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2011-02-20 07:58:30 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2011-02-20 07:58:30 +0000
commitf9e66923e5c77925e566778b4d25c0cc5daa2324 (patch)
tree95b9808304a1ca64bc7c111d5ca8ba89e20a82f1
parent11725f214267542e1065ac85c9cb4898300d49b8 (diff)
downloadsrc-f9e66923e5c77925e566778b4d25c0cc5daa2324.tar.gz
src-f9e66923e5c77925e566778b4d25c0cc5daa2324.zip
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.
Notes
Notes: svn path=/head/; revision=218879
-rw-r--r--sys/compat/linux/linux_fork.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_fork.c b/sys/compat/linux/linux_fork.c
index ce8f5591528d..bf1d45c9ea34 100644
--- a/sys/compat/linux/linux_fork.c
+++ b/sys/compat/linux/linux_fork.c
@@ -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)