diff options
author | dchagin <dchagin@FreeBSD.org> | 2011-02-20 07:58:30 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2011-02-20 07:58:30 +0000 |
commit | 7309a9eb12179d7e199cb36907ea2ff0549a5b98 (patch) | |
tree | 95b9808304a1ca64bc7c111d5ca8ba89e20a82f1 /sys/compat/linux/linux_fork.c | |
parent | 13343e496db627156bf26e73ed6147099d6a48c1 (diff) | |
download | FreeBSD-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/linux_fork.c')
-rw-r--r-- | sys/compat/linux/linux_fork.c | 1 |
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) |