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:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=vXUPC07GXCUQs3jvUQ1wmLUR/nyXlSvInT7SQlDpiNQu92GRWVXBs
	8FzZF27k8htRRI0SeGK3uBQarGsRyu44P7nrxquERdItcHAYRwYkFcll3o6EJ6pm
	aqc9Zjtct7zzcpD0NwJEPh3FP7IV1JRLvR+KQIhBf4AFFeHvI4tphE=
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:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=3XNQwVzhVCqwMNYyCDypHWnCP9I=; b=VIbi/TsSDqk4KqE6xR8PKhrRAy+i
	7Ze7oVvMLWdil+sn3F2EdW8zIhAGR5LS19jB6f4CGcxQYWf0FfYBqm/beWC8pxcj
	5qFeskwdDjFcQZy4IcTp0EEGBx07+3NN4nSlB7m4lBFLmied6rvRIWw/B6J11eOU
	nSBtjqIwZcQQs8M=
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=-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=folks
X-HELO: mout.kundenserver.de
Date: Thu, 7 Feb 2019 19:27:35 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
Cc: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] TEST: Cygwin 3.0.0-0.7
Message-ID: <20190207182735.GG13951@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>,	cygwin@cygwin.com
References: <announce.20190205151855.GD16130@calimero.vinschen.de> <02da4eeb-fcce-b1bc-e6eb-68ff3ec0cf74@ssi-schaefer.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;	protocol="application/pgp-signature"; boundary="RYJh/3oyKhIjGcML"
Content-Disposition: inline
In-Reply-To: <02da4eeb-fcce-b1bc-e6eb-68ff3ec0cf74@ssi-schaefer.com>
User-Agent: Mutt/1.10.1 (2018-07-13)

--RYJh/3oyKhIjGcML
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Feb  7 17:14, Michael Haubenwallner wrote:
> On 2/5/19 4:18 PM, Corinna Vinschen wrote:
> > Hi folks,
> >=20
> >=20
> > I uploaded a new Cygwin test release 3.0.0-0.7
> >=20
>=20
> > Please test.
> >=20
>=20
> There's another regression - regarding spawn, exec and waitpid,
> loosing the exitstatus somewhere in between:
>=20
> $ cat > dospawn.c <<EOF
> #include <sys/types.h>
> #include <sys/wait.h>
> #include <process.h>
> #include <stdio.h>
>=20
> int main(int argc, char const **argv)
> {
>   if (argc > 1)
>     {=20=20=20
>       int pid =3D spawnv(_P_NOWAITO, argv[1], &argv[1]);
>       if (pid)=20
>         {
>           int status =3D 0;
>           pid_t wpid =3D waitpid(pid, &status, 0);
>           if (wpid > 0)
>             {
>               printf("waitpid: pid %d status 0x%x\n", pid, status);=20
>               if (WIFEXITED(status))
>                 {
>                   int ret =3D WEXITSTATUS(status);
>                   return ret;
>                 }
>             }
>         }
>     }=20=20=20
>   return 127;
> }
> EOF
>=20
> $ gcc dospawn.c -o dospawn
> $ ./dospawn /bin/bash -c /bin/false
> waitpid: pid 123 status 0x0        <=3D 2.11.2 does provide status 0x100 =
as expected
> $ echo $?
> 0        <=3D Actually I do expect the exit status of /bin/false to show =
up here.
>=20

Any chance you could take a look?  I haven't much time for Cygwin the
next couple of days.


Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--RYJh/3oyKhIjGcML
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxceJcACgkQ9TYGna5E
T6Avwg/+Ktqn0mwNFNd4NzgRq9Why4N+R6Asjdp7MTwC9HXVxLhr96rvbBqViF/i
y7afg56EgXzMNcIS4ru+izn0wvWebkwuBIqSJwfN3m2gGbNNUluq9KUfOPI3U6cz
RTjPaTCYPa8VX/FX1GdBy3ohVC77EFpwx4oZJPR9AhOTVg4Ga1W/hvdyUJ/mSmQ6
V/VjmROnzUXTK+Z7ukxhYnEVOBRFrrFAxEfUBaTwdVbhrrbT8PBFtvITR+7ySi5C
0B+a7kz60Px8u4XRueSkyR5BT0qUj2wsJBnAyxrmpyhkxiISuDRsHPcz0I/NrA/3
lldb78ml5kvjrsCBQDJfBckevFfblSrHbXHEwXK8GpBAvdQTlJqS3dtwEWECDPiy
B65IY0j8G3WrWRFJnPJKVB5TWZFHqCUOU3QeBAhLHOK3UcOpSObXiyEYeQqVkx/W
lZmZgv7z9W3KGxaYUz2Gb/B7KxAQQ8jLlhfOq+8uMwGqDWbK3PA9un1W6L0BUCcW
sGFbDUJNjmTWOPHJ3Nzl83Ra8PayUiGpuxa1gAXsJ0AuEVYwqRYTXtfSPpEBg7iO
YO39ZMj6pWnU+2MSdlWQGL8MzTIEHa1j+8tsq2Un4DslCEuzmJZh/ZJwk0wYexBy
NSPxkjRXlFQI9PIucAu0Sktr4jl/0M6tsqB41RROYB3+Dcf187M=
=sJeF
-----END PGP SIGNATURE-----

--RYJh/3oyKhIjGcML--
