Author: dchagin
Date: Sun Feb 20 07:58:30 2011
New Revision: 218879
URL: http://svn.freebsd.org/changeset/base/218879

Log:
  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.

Modified:
  head/sys/compat/linux/linux_fork.c

Modified: head/sys/compat/linux/linux_fork.c
==============================================================================
--- head/sys/compat/linux/linux_fork.c  Sun Feb 20 07:46:35 2011        
(r218878)
+++ head/sys/compat/linux/linux_fork.c  Sun Feb 20 07:58:30 2011        
(r218879)
@@ -104,7 +104,6 @@ linux_vfork(struct thread *td, struct li
                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)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to