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:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type; q=dns; s=default; b=LfmwGXI
	0AbCu/08Y3+8rxMRARfz4NuTMJmZ2+5czy5ilQNXdhCGmTIq/ETh857FPpKqDq7q
	7lH800tOr30DUd7pU6LxTGOyWzvwPB/pDeQheXeAzrl684flPmnoWjIZwpfDN+rR
	//rhcYiQ1nPE3iebp+zJVDua/Gw41iwz+ukE=
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:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type; s=default; bh=XKDgiVFGI2seh
	kuQyuVX+bW2AaY=; b=ejSsBGVFP3AyD38JnK5i2IH0ugV85Lua8NVwnGBEeLoWS
	Ldlx/xrOmTUX1Vdr3Nc0UrpYGiHHnDSWzYrhvWhUxOGUnIy4PQEtRy+1dfkcF5GY
	TL3fFQx9e2/CWyfk68xDft4E363Jz2yxSM5L85cpdT2dDohCRx2iqJWB3BeSwo=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=settled, doh, Geisert, geisert
X-HELO: mail-yw0-f173.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:mime-version:in-reply-to:references:from:date         :message-id:subject:to;        bh=AFGnWmsF3u0LUo4WRNJp27D7vg+gyd7dz7T/BwZeaKE=;        b=mRN/RcW9uInRP4g+r40eEM6pX3L/5O8B0dDvvofonXuPpc3ROQITGhdE5sDI22BztE         oKGTHloIWyNn4Dq0YQ293b/KEl8ue0par8E96nyxcpyCvDiRg4E0h2ZP5UIjJ1QgZNL+         Vml2GG+LP28HNLKN54qDgEK2TXUIaxKCTEVVafOWAkUXSpD6DoX9xgYLJvJmfPbexWJF         Cnb+8Mppkwsdk3SEPt/tzP9XSIt7ejfTXmXxXmHNAt+VmMS9+gp0h8nlI39BKzfWM2Go         nY8lAIc/Cx6D1Beptn+cHjIBcUy1TcmgcoktzGc8On9pxKijqHM5vxsbnQE6XUhAEnyr         pjnA==
X-Gm-Message-State: AMke39l7P/IdzRN5gtJKE4sCw5lVjlRGNEM4Ujfa3LpblNbZGWWcyg6hfar8hcye0aZtYDq3JoFr71VidNTVKQ==
X-Received: by 10.129.91.139 with SMTP id p133mr6278192ywb.320.1487343989226; Fri, 17 Feb 2017 07:06:29 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <CAOTD34Z7VM=6=Ss_gCLS97c4sFNpnaT-+RgJq+xme-VyWYbbpw@mail.gmail.com>
References: <CAOTD34bHSDJErA0B8Qt8Zqi54ciV5ZpRJdTa_pGs9Mp2PERsuw@mail.gmail.com> <58A3598F.2020405@maxrnd.com> <CAOTD34Z7VM=6=Ss_gCLS97c4sFNpnaT-+RgJq+xme-VyWYbbpw@mail.gmail.com>
From: Doug Henderson <djndnbvg@gmail.com>
Date: Fri, 17 Feb 2017 08:06:08 -0700
Message-ID: <CAJ1FpuPdAC2jkMPTo+gxqpd=_7qZ9WB3t3KWizZyWMtcNNiwVA@mail.gmail.com>
Subject: Re: Problem with zombie processes
To: cygwin <cygwin@cygwin.com>
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes

On 17 February 2017 at 04:00, Erik Bray wrote:
> On Tue, Feb 14, 2017 at 8:25 PM, Mark Geisert wrote:
>> Erik Bray wrote:
>>>
>>> The attached Python script
>>
>>
>> ??
>
> D'oh!  Here is the script.  It at least demonstrates the problem.
>

If you add a few "time.sleep(1)" statements before and after sending
the kill signals, you should observe consistent behavior. Without the
delay (and forced context switches) the main process may run before
the child process state has settled before and after the kill signals.

On Win7, with the delays, I see consistent behavior for both cases.
Test 1 always succeeds. Test 2 always fails with "IOError or OSError
[Errno 22] invalid argument" for python or python3 (respectively).

While not a explanation of the different results for test1 and test2, I HTH.
Doug

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

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

