From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52210 invoked by alias); 8 Feb 2019 12:21:31 -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 52195 invoked by uid 89); 8 Feb 2019 12:21:30 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-100.4 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy= X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.130) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Feb 2019 12:21:29 +0000 Received: from calimero.vinschen.de ([217.91.18.234]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MgNQd-1hJz3p2Icp-00hxES; Fri, 08 Feb 2019 13:21:26 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 25D4CA8045C; Fri, 8 Feb 2019 13:21:26 +0100 (CET) Date: Fri, 08 Feb 2019 12:21:00 -0000 From: Corinna Vinschen To: Michael Haubenwallner Cc: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] TEST: Cygwin 3.0.0-0.7 Message-ID: <20190208122126.GM13951@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: Michael Haubenwallner , cygwin@cygwin.com References: <02da4eeb-fcce-b1bc-e6eb-68ff3ec0cf74@ssi-schaefer.com> <20190207182735.GG13951@calimero.vinschen.de> <8a2f041f-f8f7-6e17-5d97-5a168440009b@ssi-schaefer.com> <20190208113158.GH13951@calimero.vinschen.de> <17e339bb-2115-bf22-7291-04215aab3150@ssi-schaefer.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GBDnBH7+ZvLx8QD4" Content-Disposition: inline In-Reply-To: <17e339bb-2115-bf22-7291-04215aab3150@ssi-schaefer.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-02/txt/msg00068.txt.bz2 --GBDnBH7+ZvLx8QD4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1547 On Feb 8 12:51, Michael Haubenwallner wrote: >=20 >=20 > On 2/8/19 12:31 PM, Corinna Vinschen wrote: > > On Feb 8 07:46, Michael Haubenwallner wrote: > >> > >> On 2/7/19 7:27 PM, Corinna Vinschen wrote: > >>> On Feb 7 17:14, Michael Haubenwallner wrote: > >>>> On 2/5/19 4:18 PM, Corinna Vinschen wrote: > >>>>> Hi folks, > >>>>> > >>>>> > >>>>> I uploaded a new Cygwin test release 3.0.0-0.7 > >>>>> > >>>> > >>>>> Please test. > >>>>> > >>>> > >>>> There's another regression - regarding spawn, exec and waitpid, > >>>> loosing the exitstatus somewhere in between: > >>>> > >>> > >>> Any chance you could take a look? I haven't much time for Cygwin the > >>> next couple of days. > >> > >> Ok, will do. Any hints probably? > >=20 > > Thanks! The only thing coming to mind is the removal of the parent > > handle when switching PID method. Or maybe the permission restriction > > on the process handles? >=20 > For now it seems like there's an inconsistency with PIDs: > A first process PID 100, receives PID 101 from spawn(), > but in the new process getpid() returns 102: >=20 > $ ./dospawn /bin/bash -c 'echo $$' > 12625 > waitpid: pid 12624 status 0x0 Oh, hmm. If you call spawnve, rather than execve, a new child pid is generated in spawnve, rather than just keeping the callers pid. However, apparently the child invents its own pid in pinfo::thisproc after being spawned. But actually this should only occur for forked processes aore processes started from non-Cygwin parents. Corinna --=20 Corinna Vinschen Cygwin Maintainer --GBDnBH7+ZvLx8QD4 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxddEUACgkQ9TYGna5E T6DIPA/+P5kNDsPMNb0IupYS+BnstCDVvD0VDtOSmuClf4b/jZ1WtqWl0b8JsWFW sasAD26vuyZAOltPzimjRt0OcT+8Y2cMgO3IxbQGKuWm5KDwsgLcmB1XKrArSc6c bb/zHP995HfjPkQhpiyuXERm++3+SxUFzmJpC4jLeiO6oOZ4SNiUcFxDk7fVdunE D0Ag1XHoL9oAEMLnXpTnFnec+6av32fvM9f+cUWUF+ur+0nYYRy68u9YkD6gY0Qw egUBhKQlQh9dq3Y+EWZOjxoxZ6G73nahroriW3ncRvSegllR6cYgWDp5CENp7PeI xQsmN4WSJ/HEjfpWRxIu9fkMMcIVl2hOXgDv+L5n312jvAVwdxH4QJacjk78Lcfs Ym269YhVx6WMTmjr7CEasWVbBLsXp9x/66D76IQGgCLFID4+fYgzPEuZpo7C7vQF UU2iuY+PwRl+mjnPoYN6mzc23FYu9JIFjkUnLSr41mXeib5NF9O0q7f2wcKr5yXg DOY2dMIPBp/ioddtkBRKwo705FhZ0xbgNFPpeiCMKzACggObOrQQ0Aisd2hjc8q5 WH61HGUnJQUQQ0Jh8IUXyH4VZ5ML1UUdf8iiSYG2VkN5QEt/vxcimJlEgezZPAcZ 0Rtig4H4ybIwgH9WlnvepmHgOcPBskW+PNo0Y0DsEpG9TReoSfU= =x5/N -----END PGP SIGNATURE----- --GBDnBH7+ZvLx8QD4--