From 6dc0f7cde51187b0ac39dd8dfcf92be6f1eacac3 Mon Sep 17 00:00:00 2001 From: netchild Date: Sun, 15 Oct 2006 13:22:14 +0000 Subject: MFP4 (107144[1]): Implement CLONE_FS on i386[1] and amd64. Submitted by: rdivacky [1] --- sys/i386/linux/linux_machdep.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/i386/linux/linux_machdep.c') diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c index d888744..849170b 100644 --- a/sys/i386/linux/linux_machdep.c +++ b/sys/i386/linux/linux_machdep.c @@ -375,7 +375,13 @@ linux_clone(struct thread *td, struct linux_clone_args *args) 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; /* -- cgit v1.1