X-Recipient: archive-cygwin@delorie.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:cc:subject:message-id:in-reply-to
	:references:mime-version:content-type:content-transfer-encoding;
	 q=dns; s=default; b=yIxJSewWfEi16Dtfb05mt+vBI9dLWsyI0J6P1YC/aij
	mBnU2hoGU+aNVybkQXqV1llttmoTx5IKiw7uk9CwyQTUq6ut1eCu/632wLARzU5/
	V+fbkYiguMKQjT6fjLvgjWrusd2kpFWK1SdXj1bNyz/zK7gK+mU1B0YvLR8o86Y8
	=
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:cc:subject:message-id:in-reply-to
	:references:mime-version:content-type:content-transfer-encoding;
	 s=default; bh=ClocTOR3JdrlFBwm/G047vQiK3U=; b=CeSPJOLsp8jK+NNLb
	HPJXDw1cadjs3cSrcr7BgKrr0p/OTzUHu93Fnz1CPLzFhLMkwvx5KYwnFBMHpNBm
	5QmAK5j1k8r8IbZgYIIedCIAmvAA6F7kCj/gkwBkWB/HrnpZp3UgOy4foQuAOBsc
	y3KZPGx+aSQpBbPwtZg2seGVQA=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-5.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=
X-HELO: conssluserg-04.nifty.com
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 01D4DLhl005373
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp;	s=dec2015msa; t=1581567202;	bh=rjoqsLTTK5VYtNFjM5twJk1umSg31nt48RLAYfCSnM4=;	h=Date:From:To:Cc:Subject:In-Reply-To:References:From;	b=oRraIXu8FyttFBUeFBK9j3b5TYXd/41+r34HFds6yuDCLPnirJlvG0K+yZ+eXdSzD	 dHPOlUGj4udyxqyn8uHg2G+2yhy9c0P3VH1hD6VAGdLw7Txd9pkO2JdzzDUfubqBYy	 dBoGAYgSo2YPCkYBeJTpX7SP0B0JqwTunajrCuIikSfT8Nk4M6BXvqkgvYPoCIMPY4	 +SAJYVR51TvjbryRJ4B6iAO36g7XZR7wgt+MdQnYQ4TryTAzTud9foA0/AGzqWEmXR	 lLyk9A577ICWGKXXp8izfpOR3OAhWj/+oH4kVvWyyVCESABqgGgNtPqcOirCe2XCPa	 JxLjbgYwrkb2Q==
Date: Thu, 13 Feb 2020 13:13:22 +0900
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: pdt@dontech.dk
Cc: cygwin@cygwin.com
Subject: Re: fork: Resource temporarily unavailable errors after upgrading cygwin packages
Message-Id: <20200213131322.66b104901134c644c0dad57e@nifty.ne.jp>
In-Reply-To: <3971cde6277a16cb04ac25067b4478b9cfbfa319.camel@dontech.dk>
References: <6d43c714-c4ba-4f0c-9913-cb8453129c85@gmail.com>	<d24aa066-ab3d-9ff0-215a-0a1ed1ec2e5d@cornell.edu>	<93562f34-3a14-0c10-cb57-1ae861307d82@gmail.com>	<f4a808cf-d129-f6ce-0da8-674cf88a71ad@gmail.com>	<810b0c97ee0697c06bdaa4dff4081bb502bc46ab.camel@dontech.dk>	<CACSsrOzmexPqVeAoZigrkR4Tv6sWa-506Ui8UzsgLcTSBotgLw@mail.gmail.com>	<9ed4b0776323e4a0f62191121715d52a0429bdb2.camel@dontech.dk>	<d5109f77-9d73-fd68-fac6-1119037c8468@gmail.com>	<23d3cd65794886745e2070a1d1b74013418b0bd8.camel@dontech.dk>	<20200211112026.05664f5c68b6282a39da8ac2@nifty.ne.jp>	<b3f992f6b2ba69b9f29e2b126e8580e76d98e4a8.camel@dontech.dk>	<20200211221606.c82d718ec32a6d0ce3c2ad7b@nifty.ne.jp>	<03033cd520c633f90e503414f1b678b4a9283d33.camel@dontech.dk>	<20200212112411.32f05ee5ce2c1401bd076746@nifty.ne.jp>	<3971cde6277a16cb04ac25067b4478b9cfbfa319.camel@dontech.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On Wed, 12 Feb 2020 11:54:02 +0100
Peter Dons Tychsen wrote:
> Hi Takashi,
> 
> On Wed, 2020-02-12 at 11:24 +0900, Takashi Yano wrote:
> > My failure in pty code was that I used kill() in pty system
> > calls. kill() can be used check if the process is still alive
> > by passing signal number of 0 to the second argument. It returns
> > -1 if the process already exited. However, in this case errno
> > is set to ESRCH. As a result, the errno value which pty system
> > call set is accidentally overwritten by kill().
> 
> OK, thanks for clearing all that up. Just wanted to make sure kill()
> was not buggy :-).
> 
> I will test the committed patch and the upcoming release vigerously to
> see if there are still bugs to be found in this area. Not sure why i
> get fork() errors and you do not (my tests with the example i made
> always causes fork() errors in 3.1.2).
> 
> Thanks for all the help and your snappy replies,

Could you please try latest snapshot?
https://cygwin.com/snapshots/

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

--
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

