From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70496 invoked by alias); 17 Feb 2017 15:06:33 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 70482 invoked by uid 89); 17 Feb 2017 15:06:32 -0000 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 Received: from mail-yw0-f173.google.com (HELO mail-yw0-f173.google.com) (209.85.161.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Feb 2017 15:06:31 +0000 Received: by mail-yw0-f173.google.com with SMTP id u68so24289936ywg.0 for ; Fri, 17 Feb 2017 07:06:31 -0800 (PST) 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 Received: by 10.37.6.139 with HTTP; Fri, 17 Feb 2017 07:06:08 -0800 (PST) In-Reply-To: References: <58A3598F.2020405@maxrnd.com> From: Doug Henderson Date: Fri, 17 Feb 2017 15:06:00 -0000 Message-ID: Subject: Re: Problem with zombie processes To: cygwin Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00219.txt.bz2 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