[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [issue #2723] 'diff' output, and handling chdir() in multi-threaded applications

From: Nicolás Lichtmaier <nick_at_reloco.com.ar>
Date: 2007-03-03 02:33:27 CET

> I'd like to be able to provide some control over the appearance of the
> paths used in the diff output to Subclipse and other consumers of our
> client APIs. Currently, the only way I can see to provide this
> control for relative paths is to chdir() to the appropriate directory
> before running 'diff'. (I have a patch implementing this which works
> fine.)

As it was correctly pointed out, chaidr() is totally MT unsafe. But why
do you needi to chdir the *parent* process? You need to chdir in the
*forked* process before exec(). In Windows, CreateProcess receives the
cwd for the new process as a parameter. APR must have handle this
(haven't checked).

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 3 02:34:02 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.