Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2012 02:02:11 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244237 - head/sys/kern
Message-ID:  <201212150202.qBF22BZt013554@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Dec 15 02:02:11 2012
New Revision: 244237
URL: http://svnweb.freebsd.org/changeset/base/244237

Log:
  Remove a special case for XEN, which is erronous and makes vfork(2)
  behaviour to differ from the documented, only on XEN.  If there are
  any issues with XEN pmap left, they should be fixed in pmap.
  
  MFC after:	2 weeks

Modified:
  head/sys/kern/kern_fork.c

Modified: head/sys/kern/kern_fork.c
==============================================================================
--- head/sys/kern/kern_fork.c	Sat Dec 15 00:03:35 2012	(r244236)
+++ head/sys/kern/kern_fork.c	Sat Dec 15 02:02:11 2012	(r244237)
@@ -150,11 +150,7 @@ sys_vfork(struct thread *td, struct vfor
 	int error, flags;
 	struct proc *p2;
 
-#ifdef XEN
-	flags = RFFDG | RFPROC; /* validate that this is still an issue */
-#else
 	flags = RFFDG | RFPROC | RFPPWAIT | RFMEM;
-#endif		
 	error = fork1(td, flags, 0, &p2, NULL, 0);
 	if (error == 0) {
 		td->td_retval[0] = p2->p_pid;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212150202.qBF22BZt013554>