PERFORCE change 107144 for review

Roman Divacky rdivacky at FreeBSD.org
Mon Oct 2 23:17:54 PDT 2006


http://perforce.freebsd.org/chv.cgi?CH=107144

Change 107144 by rdivacky at rdivacky_witten on 2006/10/03 06:17:44

	Implement CLONE_FS - untested.

Affected files ...

.. //depot/projects/linuxolator/src/sys/i386/linux/linux_machdep.c#5 edit

Differences ...

==== //depot/projects/linuxolator/src/sys/i386/linux/linux_machdep.c#5 (text+ko) ====

@@ -375,7 +375,13 @@
 		ff |= RFMEM;
 	if (args->flags & CLONE_SIGHAND)
 		ff |= RFSIGSHARE;
-	if (!(args->flags & CLONE_FILES))
+	/* 
+	 * XXX: in linux sharing of fs info (chroot/cwd/umask)
+	 * and open files is independant. in fbsd its in one
+	 * structure but in reality it doesnt make any problems
+	 * because both this flags are set at once usually.
+	 */
+	if (!(args->flags & (CLONE_FILES | CLONE_FS)))
 		ff |= RFFDG;
 
 	/*


More information about the p4-projects mailing list