| delorie.com/archives/browse.cgi | search |
| 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:reply-to:message-id:to:subject | |
| :in-reply-to:references:mime-version:content-type | |
| :content-transfer-encoding; q=dns; s=default; b=sU9gdR8eWuv2xgZu | |
| zdqWa5RSI9NbLWVR2VpKVLFtcQH8PxA8KWJ9cstNmmg21Mv3EQXOWE4EgbYLk0E7 | |
| QS0rMRIXkaKa9aCy5mTYd0vqzXOdzFydPgtOeWGolbLYMPQP0YF5Vaki32xpS7tA | |
| ha4AUShpQKPfDwYMl1fzALiI5o0= | |
| 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:reply-to:message-id:to:subject | |
| :in-reply-to:references:mime-version:content-type | |
| :content-transfer-encoding; s=default; bh=0w9s+/4X3HhRjXBSfuALqJ | |
| JxZfk=; b=PwH1i7p+V/ziafnWw8+rrWjwdZUkcH5PKcOLadTmxMsdW0KebLIRCa | |
| rIIYkAnPWuq0eo1Dyy/7G2lRSO6nwNfTLw45RCH18PLPqeSNciq3aYNBtt2t0ws2 | |
| U7N9YWSOGtUfrYL+RniEqxmFpXljdZd8EbuMa/GxRW/0wJfB1Z/R8= | |
| 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=4.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 |
| X-HELO: | smtpback.ht-systems.ru |
| Date: | Wed, 30 Oct 2013 10:47:20 +0400 |
| From: | Andrey Repin <anrdaemon AT yandex DOT ru> |
| Reply-To: | Andrey Repin <cygwin AT cygwin DOT com> |
| Message-ID: | <1152476308.20131030104720@mtu-net.ru> |
| To: | "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr AT ncbi DOT nlm DOT nih DOT gov>, |
| cygwin AT cygwin DOT com | |
| Subject: | Re: fork() and NT error 0xC0000135 (STATUS_DLL_NOT_FOUND) |
| In-Reply-To: | <5F8AAC04F9616747BC4CC0E803D5907D0C40B026@MLBXv04.nih.gov> |
| References: | <5F8AAC04F9616747BC4CC0E803D5907D0C40B026 AT MLBXv04 DOT nih DOT gov> |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
Greetings, Lavrentiev, Anton (NIH/NLM/NCBI) [C]!
> 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?
Add cygwin1.dll to the list of known system libraries.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
May help.
But this doesn't change the fact that the server SHOULD NOT unconditionally
change the CWD to the ROOT of a file system.
--
WBR,
Andrey Repin (anrdaemon AT yandex DOT ru) 30.10.2013, <10:44>
Sorry for my terrible english...
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |