X-Recipient: archive-cygwin AT delorie DOT 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:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=yfaw7dxrwTesqvo7c8bHGUNtP+DD9C9yXCH/1hxCvOW9d0Xee3F2C +tUvv3lp1jnsIXFECi0uypM6tmfNPIOby2i5HSaD5UW17pSwAuHgcCXFhZijU4T5 8yUgNgohuv/TMnf+ydqVg0jHeUziNqJDZ5YJ0HiBomCk7DG7lILXKM= 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:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=pJosdZkGvWVYM4HYrs9ytJtRQgU=; b=Jv+SaL0gHBhjg50y+38Fg+n6VBAA CEc2ybzbAQDrG+3ayu9vgEv7vhQPRCUZSKdpCMe1Ezl24yW5K1nqI6mIOfMOReU8 lHkJECmBC+XH3N5mDMsA7MUaCG59wZwCjlb2H94vHUuKoNOgJSW6TgR9VZGBHVGk C0VdX4OV2KUl+RE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Date: Tue, 22 Jan 2019 11:39:28 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT 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 AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <0f030e809f063f5a5e64ff7a7a0c3227 AT xs4all DOT nl> <20190106201950 DOT GC4430 AT calimero DOT vinschen DOT de> <1c60402837d6510667357257b5e96e88 AT xs4all DOT nl> <20190122090633 DOT GK2802 AT calimero DOT vinschen DOT de> <151898514e462bd76cda8a227d4baa16 AT xs4all DOT nl> <20190122094157 DOT GN2802 AT calimero DOT vinschen DOT de> <45382f09a86b6cf3bcabd82adb593622 AT smtp-cloud8 DOT xs4all DOT 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) --rCwQ2Y43eQY6RBgR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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" -----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--