Re: chdir for cloned tasks?

Ingo Molnar (mingo@pc7537.hil.siemens.at)
Sun, 10 Aug 1997 14:12:37 +0200 (MET DST)


On Sat, 9 Aug 1997, Bill Hawes wrote:

> 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