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=p8EjHEI47SL4wyKd+Sqxe16JddQLb6+gUjA+jktaM6hgqTz7PcYtq wUlq3SCeQmOoTrveN6gc7EIES/axRzNoaQxCYUIvNA6xi/MZ8YpEg+KhyDdnaPfi 4DnXI1mJoJvTceDWZqB14/8PpCd+hHuRkPYdI5sgaCiRMoou9FY7Mk= 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=Dqs+Zaw/72yWwdb2asIP/DpHBTw=; b=UQFtq192NLOWkKX1+YODJQ/lq/iR Ib9QgsvhbRhGBPJomuk3G+GmFHqVITLZZ+7YxrJDLhTCypoaYw/bv1U7G+xHAGAn HSvydCZe7BKeEDNtSET6PIO5Jsxyv+nbd2cL7jaCmAxjEHgoBrQjMH9FQJQkmmRJ /Qjs6bASrwHz3Cc= 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-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.6 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,KHOP_DYNAMIC,RCVD_IN_BRBL_LASTEXT,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=Down, H*i:sk:loom.20, Hx-languages-length:1970, H*r:sk:calimer X-HELO: calimero.vinschen.de Date: Mon, 11 Jan 2016 16:47:37 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Pipes Again -- a simple test case Message-ID: <20160111154737.GA30417@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <0aebd09993901f3ef3ff728d162952cd AT xs4all DOT nl> <568A32BE DOT 4080101 AT gmail DOT com> <20160108151933 DOT GI20447 AT calimero DOT vinschen DOT de> <83235106e7ed2fcfde26293d156be51d AT xs4all DOT nl> <20160108163055 DOT GK20447 AT calimero DOT vinschen DOT de> <20160111115523 DOT GD32610 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jan 11 15:35, Henri wrote: > Corinna Vinschen cygwin.com> writes: >=20 > > > > As a final point, I also tested FIFOs and (unix domain) sockets. > > > >=20 > > > > FIFOs pass the test, sockets do not. > > >=20 > > > Yes, that's expected. The underlying hack^Wmethod is the same for so= ckets > > > and pipes, while FIFOs have a real path on a real filesystem and thus= have > > > a real inode number to fetch in stat/fstat. > >=20 > > I applied a patch to make this work. Please give the latest developer > > snapshot from https://cygwin.com/snapshots/ a try. >=20 > Thank you! >=20 > Down with flue on this side. Did a quick verification (32-bits Cygwin). > Pipes look good. The problem with cmp apperas to be gone. > Sockets still leave wanting, as shown here: >=20 > @@ ./t_henri > 1st socket > ... /proc/4896/fd/3 (symbolic link to the socket) > ... socket:[252] (target of symbolic link to the socket) > ... using stat() on symbolic link: /proc/4896/fd/3 > File type: socket > Device containing i-node: (1e0000) major=3D30 minor=3D0 > I-node number: 38037da0d28c3faf - decimal: 4036207820734742447 > File size: 0 bytes > ... using fstat() > File type: socket > Device containing i-node: (1e0000) major=3D30 minor=3D0 > I-node number: 1 - decimal: 1 > File size: 0 bytes >=20 > 2nd socket > ... /proc/4896/fd/4 (symbolic link to the socket) > ... socket:[272] (target of symbolic link to the socket) > ... using stat() on symbolic link: /proc/4896/fd/4 > File type: socket > Device containing i-node: (1e0000) major=3D30 minor=3D0 > I-node number: 38037da2d3885eb1 - decimal: 4036207829341200049 > File size: 0 bytes > ... using fstat() > File type: socket > Device containing i-node: (1e0000) major=3D30 minor=3D0 > I-node number: 2 - decimal: 2 > File size: 0 bytes > @@=20 Can you please provide the socket testcase? Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWk86ZAAoJEPU2Bp2uRE+gIgcP/34Qo6cShO2PYGpZwIhxyQba 7+0MS5SxYtwBm3XlqblL9gGWd+p6mcEc7e69MkrP1jbFsCWECb3xykjGb+bAXM+a ZOLzZV/QUmvTAWJo3XBUjskQ514ev7HqKXtJ0PW9pmH0nWeh17VO/NB68uKzk9tb WQ+trVxDZb3EBq2tmu/uaqCsTDow/fllF07FN+rhy17I52TiJ3YC2PJRil9h0jNq NrjESyKXPJMGJTvS+52X6fIP1eFBsQxAhy2iAV1hkE3vpqeVPbTDabVXUzwMlAYJ zQWUFbkpdArpG0KPHynS9aIAiSeNHLRmGveXC5lQJy3NhwYfcSZM9zSWeLtMdT+G pp/Kh5y6KJhfOigSVx89Q4EzFzoU3fSRJ5gCdN8u/Gv+1vgTo5ij53Iklxalqe+g pB2dIFFd8sxxAfLHQ0nKatuj1tQtJX7Nlk4jzprvLrBwY1Mb6r8DJBjAilUpgqu8 ZWk76KtoFITJza4fhuyy/O6E7KqNNvaK3UzInxdDiKCurrfjAo+6ga19U+jrwCEc xjwubB/DyePWvFTuucKvZZm0/2X/XpWrxKd97Q8F7UA77yNXG7wZ7UicBow8Zzw+ VXBNYGSfbkcqHNRD5F7xUJp832kb91X2U81+ULkt3wqRRonQpxy8Vty8TABYhHT2 ZXIr9Jk+hpE4PY0TdQZY =u3bu -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--