Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Date: Wed, 2 May 2001 18:56:27 +0200 From: Corinna Vinschen To: cygwin-apps AT cygwin DOT com Subject: Re: WSASocketA returns WSAEPROVIDERFAILEDINIT Message-ID: <20010502185627.D9762@cygbert.vinschen.de> Mail-Followup-To: cygwin-apps AT cygwin DOT com References: <2415739582 DOT 20010430214824 AT logos-m DOT ru> <20010430215921 DOT M24200 AT cygbert DOT vinschen DOT de> <12786583109 DOT 20010501172908 AT logos-m DOT ru> <3AEED4C8 DOT 5E7B8D7 AT reversion DOT ca> <3AEED8E0 DOT D7FD6731 AT yahoo DOT com> <11594817860 DOT 20010501194623 AT logos-m DOT ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <11594817860.20010501194623@logos-m.ru>; from deo@logos-m.ru on Tue, May 01, 2001 at 07:46:23PM +0400 On Tue, May 01, 2001 at 07:46:23PM +0400, egor duda wrote: > Hi! > > Tuesday, 01 May, 2001 Earnie Boyd earnie_boyd AT yahoo DOT com wrote: > > >> Thanks, I'll try that out.. Do you think I can set the SYSTEMROOT in my own call to _spawnlpe() or should I apply the patch to > >> the cygwin source and rebuild the DLL? > >> > >> Thanks for the reply. I had lost hope of a response long ago! > > EB> Hmm... On WinNT 4 it's set as a standard Win32 environment variable. > EB> Just make sure it's part of the Windows initialization. > > it's certainly set by default. the problem is that spawnlpe (and > execle, for that matter), create process with new, constructed > environment, and if programmer won't include SystemRoot in this > constructed environment, new process won't have it. this may break > some standard windows components, including winsock. I had the problem of missing Windows environment variables when porting OpenSSH. Since there are so many of them and since any application could break because of the lack of them I decided to copy the whole environment to the subprocess, except for variables which have to be changed. That's part of the OpenSSH sources. Eventually that would be good practice to do that for rshd as well??? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc.