diff options
author | netchild <netchild@FreeBSD.org> | 2006-10-15 13:22:14 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2006-10-15 13:22:14 +0000 |
commit | 6dc0f7cde51187b0ac39dd8dfcf92be6f1eacac3 (patch) | |
tree | 758c2def114885370886e3c4f06dd447f7add7ee /sys/i386/linux/linux_machdep.c | |
parent | 4afde074491866aae382433ba9266285f671d6fd (diff) | |
download | FreeBSD-src-6dc0f7cde51187b0ac39dd8dfcf92be6f1eacac3.zip FreeBSD-src-6dc0f7cde51187b0ac39dd8dfcf92be6f1eacac3.tar.gz |
MFP4 (107144[1]): Implement CLONE_FS on i386[1] and amd64.
Submitted by: rdivacky [1]
Diffstat (limited to 'sys/i386/linux/linux_machdep.c')
-rw-r--r-- | sys/i386/linux/linux_machdep.c | 8 |
1 files changed, 7 insertions, 1 deletions
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; /* |