From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 82287 invoked by alias); 7 Feb 2019 18:27:41 -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 82271 invoked by uid 89); 7 Feb 2019 18:27:40 -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=folks X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 07 Feb 2019 18:27:39 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N1x6X-1hGJPK3cYj-012G01; Thu, 07 Feb 2019 19:27:35 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 664EAA8047C; Thu, 7 Feb 2019 19:27:35 +0100 (CET) Date: Thu, 07 Feb 2019 18:27:00 -0000 From: Corinna Vinschen To: Michael Haubenwallner 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 , cygwin@cygwin.com References: <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) X-SW-Source: 2019-02/txt/msg00062.txt.bz2 --RYJh/3oyKhIjGcML Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1464 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 < #include > #include > #include > #include >=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" Content-length: 833 -----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--