delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/10/29/13:23:39

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=edS8Sox5jKim1eMkmcTvelGWicHn2RjAWwWEbCQLRAxBUi1aPvZU5
C/0aQKn4EP/Z5IQOZSA+r6i/W/IBgd8xYpzmA427DXYXmFm3ZQQXTg4wMl00Rln2
WDaV52HfcFYtbOSZwfDDL3aezDGltg0ByAeoBXgPtMuyEPrUcGTNgw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=CyO+jOcUmY0kOx5j+JaGlod60zg=; b=cWvbZZMDgNI3ObMGtFmPYt/HUNfh
2uXDjjxLo75DDyFQljC+7oEgVxK+ftG4rAM5SOdrX54CTg0acBo4gQ0/HYaJYlqH
FXN2BmcNXZpCLu0bFXZe+UdnkXUUsK6oi4VSr4qnB+R9DWr9m4S35/68DuSJmt85
+7yNtcLMZ3h3ekE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: mho-01-ewr.mailhop.org
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+vAy+ysb864hIKiE+XeJ3W
Date: Tue, 29 Oct 2013 13:23:21 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: fork() and NT error 0xC0000135 (STATUS_DLL_NOT_FOUND)
Message-ID: <20131029172321.GB1433@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5F8AAC04F9616747BC4CC0E803D5907D0C40B026 AT MLBXv04 DOT nih DOT gov>
MIME-Version: 1.0
In-Reply-To: <5F8AAC04F9616747BC4CC0E803D5907D0C40B026@MLBXv04.nih.gov>
User-Agent: Mutt/1.5.20 (2009-06-14)

On Tue, Oct 29, 2013 at 04:13:14PM +0000, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
>Hello All,
>
>I can't find a similar problem reported earlier, so please excuse the question
>if it looks familiar.
>
>We have a software package that installs like a miniature CYGWIN deployment
>(basically, only cygwin1.dll and just a few other libraries in /bin
>along with cygrunsrv.exe), and there are no shells.
>
>cygrunsrv.exe is used to register and launch a Windows service with a binary
>located under "/opt/..." (which is a ported UNIX server).  The binary is started
>just fine, but when it tries to fork(), it gets the error 0xC0000135 (w/ errno=11,
>EAGAIN).  I traced it down to the fact that before fork() there is chdir("/") in
>that server binary.  Can it be the reason for the failed fork() that it can no longer
>find cygwin1.dll?  Unfortunately, I can't extend Windows PATH to include the
>CYGWIN /bin directory (because the cygrunsrv runs under an unmanaged service
>account).  Is there any other fix?

Cygwin doesn't rely on the PATH environment variable to find the binary
being forked.  It would be disastrous if it did.

cgf

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

- Raw text -


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