Messages in this thread | | | Date | Sun, 10 Aug 1997 14:12:37 +0200 (MET DST) | From | Ingo Molnar <> | Subject | Re: chdir for cloned tasks? |
| |
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
| |