From 7309a9eb12179d7e199cb36907ea2ff0549a5b98 Mon Sep 17 00:00:00 2001 From: dchagin Date: Sun, 20 Feb 2011 07:58:30 +0000 Subject: 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. --- sys/compat/linux/linux_fork.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sys/compat/linux') 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) -- cgit v1.1