You are viewing a plain text version of this content. The canonical link for it is here.
Posted to websh-dev@tcl.apache.org by "David N. Welton" <da...@dedasys.com> on 2002/04/06 14:03:08 UTC

still no word on chdir stuff

I've been asking around on dev@httpd.apache.org, but the more I think
about it, the more I'm not sure about what to do...  I mean,
basically, even in Tcl, using Tcl's threads, there is no guarantee
that another one could come along and change the cwd, right?

-- 
David N. Welton
   Consulting: http://www.dedasys.com/
     Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
   Apache Tcl: http://tcl.apache.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org


Re: still no word on chdir stuff

Posted by "David N. Welton" <da...@dedasys.com>.
Ronnie Brunner <ro...@netcetera.ch> writes:

> I see no other possibility.

I can't help but agree.  Pity... I guess we can use the variables
taken from the enviroment to knit things together.

-- 
David N. Welton
   Consulting: http://www.dedasys.com/
     Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
   Apache Tcl: http://tcl.apache.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org


Re: still no word on chdir stuff

Posted by Ronnie Brunner <ro...@netcetera.ch>.
> I've been asking around on dev@httpd.apache.org, but the more I think
> about it, the more I'm not sure about what to do...  I mean,
> basically, even in Tcl, using Tcl's threads, there is no guarantee
> that another one could come along and change the cwd, right?

The only thing you can do if you really need to chdir: have a look
that you put around your chdir and all subsequent uses of cwd. But
that's really ugly -> we should really try to rely on paths from
whatever environment or accessor (just as proposed) and if any
developer really wants to use chdir and cwd he better makes sure he
does the locking. I see no other possibility.
------------------------------------------------------------------------
Ronnie Brunner                               ronnie.brunner@netcetera.ch
Netcetera AG, 8040 Zuerich    phone +41 1 247 79 79 Fax: +41 1 247 70 75

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org