This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
cygwin binmode problem, dll initialization time
- To: cygwin at sources dot redhat dot com
- Subject: cygwin binmode problem, dll initialization time
- From: Christian Tismer <tismer at tismer dot com>
- Date: Sat, 02 Dec 2000 17:35:58 +0200
Hi cygwin people,
I enocuntered a little problem when trying to use OpenSSH
together with WinCVS:
It only works when the environment variable CYGWIN is set to
'binary'. So far so good, but:
I tried to write a wrapper around ssh, which changes a few
settings, adds some defaults and so on. In order to avoid to
set the CYGWIN valriable globally for my machine, I tried
to pass this variable via _putenv to the environment, before
_exec'ing to the real ssh.
This does not work! The environment variable *is* passed
through to the called process, but that doesn't help.
I assume that it is the cygwion dll which must evaluate
the variable, and it doesn't do so when the calling process
has already linked to the cygwin dll.
Question: Is that a bug or an intended feature?
Here some proof of my statement:
Instead of calling gcc, I used MS VC++ to compile my little
launcher program. This has no dll linkage to the cygwin
dll, and in fact, initialization is ok, and the environment
variable's value is obeyed while ssh is running.
ciao - chris
--
Christian Tismer :^) <mailto:tismer@tismer.com>
Mission Impossible 5oftware : Have a break! Take a ride on Python's
Kaunstr. 26 : *Starship* http://starship.python.net
14163 Berlin : PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF
where do you want to jump today? http://www.stackless.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com