delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/28/04:40:40

X-Spam-Check-By: sourceware.org
Message-ID: <442904F2.30903@bull.net>
Date: Tue, 28 Mar 2006 11:42:10 +0200
From: Martine Carannante <Martine DOT Carannante AT bull DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.6) Gecko/20050319
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Problem setenv/putenv for msgget
References: <4428F3FD DOT 6060507 AT bull DOT net> <4428FA02 DOT 9FA236A7 AT dessent DOT net>
In-Reply-To: <4428FA02.9FA236A7@dessent.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Brian Dessent wrote:

>Martine Carannante wrote:
>
>  
>
>>IIS  , and I don't know how to set the CYGWIN variable before the
>>application is launched.
>>    
>>
>
>You should be able to set this in the standard windows way: Control
>Panel -> System -> Advanced -> Environment Variables -> System
>variables.
>
>  
>
Yes , it is a solution . I wanted to avoid to set new System Variables 
for my application. But it is OK.

>>So , I tried to set the environment variable CYGWIN to server with  the
>>routines setenv(), putenv(), SetEnvironmentVariable() inside the CGI
>>code. I have always the "Bad system call " error when the program
>>    
>>
>
>By the time your code executes, the Cygwin DLL has already initialized
>itself, which means it has already noted the value of the CYGWIN
>variable, so it's too late then.
>
>  
>
Does that mean it is impossible to set environment variables once the 
program is started ? In that case; the setenv/putenv are not equivalent 
to UNIX functions.

>Brian
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Problem reports:       http://cygwin.com/problems.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>
>
>  
>

Thanks
Martine


-- 
Martine Carannante
System Software Development R&D 

Bull, Architect of an Open World TM 

Tél : (+33) 1 30 80 71 87
http://www.bull.com 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019