On Mon, 28 Aug 2000, Alexander Viro wrote:
>
> Umm... If we do that (separate syscall) we might very well want to invert
> the bitmap. Because we will end up with unshare(~CLONE_FILES) and similar
> as a typical use.
I agree. "clone()" says "I want to copy these things".
"unshare()" says "I want to un-copy these things". So it makes sense that
a "unshare(CLONE_FILES)" basically _undoes_ the sharing of
"clone(CLONE_FILES)".
> BTW, I think that do_fork() should look like
[ sharing code ]
Not unreasonable.
Anyway, this is all 2.5.x.. I'd like to get at least some basic support
for pthreads compatibility if we can do it trivially in 2.4.x, but these
kinds of changes are not necessary for that at this point.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:21 EST