[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: execute, pipe: pass environment variables
From: |
Eric Blake |
Subject: |
Re: execute, pipe: pass environment variables |
Date: |
Mon, 29 Sep 2008 18:22:10 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Ralf Wildenhues on 9/29/2008 1:32 PM:
>> Propagate effects of putenv/setenv/unsetenv to child processes.
>> * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
>> * lib/pipe.c (create_pipe): Likewise.
>
> Nice! Do you happen to know whether spawnvp* exposes the command line
> length limit on w32, and if yes, is that the roughly 8KB? Does this
> change have the expected impact on maximum length?
My understanding is that W32 has a combined 32k limit on arguments +
environment, whether you get the inherited environment from spawnvp or the
new environment in spawnvpe. The maximum command line length thus depends
on how loaded environ is, but sticking to a length of 8k is usually safe.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkjhcTEACgkQ84KuGfSFAYAYvwCg0rn56PdlMmROEJH3tyEUkCQb
L+sAnj+n0Vbjp7FXSjwQys91D7GXXGtc
=r+17
-----END PGP SIGNATURE-----