From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101484 invoked by alias); 22 Jan 2019 10:39: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 101474 invoked by uid 89); 22 Jan 2019 10:39:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-100.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=unusual, ATM X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.187) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 22 Jan 2019 10:39:31 +0000 Received: from calimero.vinschen.de ([217.91.18.234]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M2wCi-1gn0Si3wLc-003MxT for ; Tue, 22 Jan 2019 11:39:28 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 3CE59A80699; Tue, 22 Jan 2019 11:39:28 +0100 (CET) Date: Tue, 22 Jan 2019 10:39:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: /dev/fd/N not synonymous with file descriptor N; it is on Linux Message-ID: <20190122103928.GO2802@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <0f030e809f063f5a5e64ff7a7a0c3227@xs4all.nl> <20190106201950.GC4430@calimero.vinschen.de> <1c60402837d6510667357257b5e96e88@xs4all.nl> <20190122090633.GK2802@calimero.vinschen.de> <151898514e462bd76cda8a227d4baa16@xs4all.nl> <20190122094157.GN2802@calimero.vinschen.de> <45382f09a86b6cf3bcabd82adb593622@smtp-cloud8.xs4all.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rCwQ2Y43eQY6RBgR" Content-Disposition: inline In-Reply-To: <45382f09a86b6cf3bcabd82adb593622@smtp-cloud8.xs4all.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-01/txt/msg00176.txt.bz2 --rCwQ2Y43eQY6RBgR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1060 On Jan 22 11:20, Houder wrote: > On Tue, 22 Jan 2019 10:41:57, Corinna Vinschen wrote: > > On Jan 22 10:25, Houder wrote: > [snip] >=20 > > > Curious! It fails (for me) on W7 ... > >=20 > > It works for me just as well on W7: > >=20 > > $ uname -a > > CYGWIN_NT-6.1 vmbert764 2.12.0(0.333/5/3) 2019-01-21 22:47 x86_64 Cygwin > > $ ./stca /dev/fd/0 < > ? bla > > ? EOF > > fd1 =3D3D 0 > > argv[1] =3D3D /dev/fd/0 > > fd2 =3D3D 3 > > buf =3D3D \ > > Hello, world! >=20 > That is odd ... (I am using the same version of Cygwin as you do, do I > not?) >=20 > 64-@@ uname -a > CYGWIN_NT-6.1 Seven 2.12.0s(0.333/5/3) 2019-01-21 10:25 x86_64 Cygwin > (however, I only replaced the cygwin1.dll) Yes > (the snapshot is apparently not the same as your version 2.12.0) My version only differs by the fact that it's built without optimization and with broken posix timer code since I'm revamping it ATM. Maybe you should run the above shell session under strace and see if something unusual crops up. BLODA? Corinna --=20 Corinna Vinschen Cygwin Maintainer --rCwQ2Y43eQY6RBgR Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxG8uAACgkQ9TYGna5E T6BoIxAAjq6zAjZ+mm+0M368g5VXMffAqVGE2GsdeFO13+84IH0yb1zAkCH2LcqZ kznoCNSp4n2uhFQfoZq0KNQNl6UpqrLKQ9Q1aUc3L4oRM88csX2aiu228DZKlZzL qTpf2+lG9geDQ7SVhdB/DXRuaqZmJmMnx2zxEAy1N4vdY69u9Sba1HEGRCIbCNuw 23QrERFFR6p+rWkk9tcsEApWfTezEkXO2AcmeUHKDcY/R3qUb+Rsawfu6cAteUSN Ih2n1EQHCBNacKkhkGDQqSas6eALNUvVonhzZ1AZqzS0HXEzy6LmuQKECo/qnwjg CSw+INijs91RXKHAYocIDGg/FF2JlP1LcTPXFb3LlS6gsA+AVXyt13d9nj8QX8/T Y2gbyiSxLG8ygWYMmE8Vr78Y19yffUsoipWz+809XQIWsREXITTs5K5lc2nCoDOK 97nFI0NqvGEX1jOZJVEAp62yuAa5Sa0pHsUNOHyIoHC/QNSgf6hXuZpH6SEi7vx/ MxzF7oTouAX02Bdsp5+MX502xWQDn6NTteZj8xjm8On/dQ2H/U+6Qe2CZ9LvX0Ig CDIAFqiaXc71iJCTMDRsx4Sr8Xtxme+fdYZ2m+IJ1jz6ezAqv7PFzEgFp7HRvMpS rcyQQKv9sygrb3x0ETaaQe+eYWoqCKJFbueWNKG5s+h0kY/is5s= =+K/O -----END PGP SIGNATURE----- --rCwQ2Y43eQY6RBgR--