On Mon, Sep 10, 2001 at 10:49:53AM -0400, Barrie Slaymaker wrote:
> On Mon, Sep 10, 2001 at 10:31:48AM +0200, Arthur Bergman wrote:
> > 
> > > > How does Apache deal with this?
> > > 
> > > By carefully repeating "Don't Do That" as they code the httpd ;-).
> > 
> > There are good reasons for this :-)
> 
> :-)
> 
> > I would suspect linux has a process level chdir, not sure thou.
> 
> Just checked, pthread_create() causes all threads to share the cwd and
> umask.  By using __clone() directly, they could be set as unshared, I
> think, by passing CLONE_FS.

s/ by passing/ by not passing/.  Sorry.  And pthread_create does indeed
pass CLONE_FS:

          pid = __clone(pthread_start_thread_event, (void **) new_thread,
                        CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_SIGHAND |
                        __pthread_sig_cancel, new_thread);

Don't think wee want ithreads on linux to not use pthreads, so not
passing CLONE_FS is not really an option...

- Barrie

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to