svn commit: r244237 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Sat Dec 15 02:02:12 UTC 2012
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;
More information about the svn-src-all
mailing list