This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem setenv/putenv for msgget

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.


Unsubscribe info:
Problem reports:

Thanks Martine

Martine Carannante
System Software Development R&D

Bull, Architect of an Open World TM

Tél : (+33) 1 30 80 71 87

-- Unsubscribe info: Problem reports: Documentation: FAQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]