X-Spam-Check-By: sourceware.org Message-ID: <4428FA02.9FA236A7@dessent.net> Date: Tue, 28 Mar 2006 00:55:30 -0800 From: Brian Dessent 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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. > 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. 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/