> How is a chdir for a cloned task supposed to be handled? The current
> code looks like it would change directories for all of the clones.
>
> Shouldn't the current directory and root be treated as a "copy on write"
> data structure?
the CLONE_FS flag to clone() handles this. If you clone such a thread, it
will still share full VM with other threads, so no speed penalty.
-- mingo