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

Re: Subversion 0.29.0 Win32 binaries

From: Jim Sokoloff <jim_at_sokoloff.com>
Date: 2003-09-08 19:57:46 CEST

On Mon, 8 Sep 2003, Russell Yanofsky wrote:

> Jostein Chr. Andersen wrote:
> > ...
> > You should not have to reboot (this even works on NT4), a new console
> > Window should have the updated path.
> >
>
> Consoles and normal programs will see changes to environment variables as
> soon as they are restarted, but programs running as (or under) system
> services like apache won't see new environment variables until the system is
> rebooted. I'm not sure what the reason for this is, but you can easily
> verify it by writing a cgi page that print environment variables.

It's quite easy. (Permit a *SMALL* amount of handwaving here)
Processes inherit their environment from their parent process.
When you modify the environment variable PATH, that change is
not reflected in all processes. (It is reflected in some,
including the explorer process which is handling the start
menu and task bar...)

If a process which has gotten the update (explorer, etc) launches
a new cmd shell or other process, you get the new environment.
If it's launched by a process which doesn't have the updated env,
you don't. I know that's far from a definitive treatise on the
topic, but hopefully it makes it seem less magical.

What this all boils down to: Reboot windows machines liberally
after running installers... :)

---Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Sep 8 19:58:48 2003

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.