svn commit: r218879 - head/sys/compat/linux

Dmitry Chagin dchagin at FreeBSD.org
Sun Feb 20 07:58:31 UTC 2011


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)


More information about the svn-src-all mailing list