summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2011-02-20 07:58:30 +0000
committerdchagin <dchagin@FreeBSD.org>2011-02-20 07:58:30 +0000
commit7309a9eb12179d7e199cb36907ea2ff0549a5b98 (patch)
tree95b9808304a1ca64bc7c111d5ca8ba89e20a82f1 /sys/compat/linux
parent13343e496db627156bf26e73ed6147099d6a48c1 (diff)
downloadFreeBSD-src-7309a9eb12179d7e199cb36907ea2ff0549a5b98.zip
FreeBSD-src-7309a9eb12179d7e199cb36907ea2ff0549a5b98.tar.gz
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.
Diffstat (limited to 'sys/compat/linux')
-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 ce8f559..bf1d45c 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)
OpenPOWER on IntegriCloud