This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Pipes Again -- a simple test case
- From: Henri <houder at xs4all dot nl>
- To: cygwin at cygwin dot com
- Date: Mon, 11 Jan 2016 15:35:24 +0000 (UTC)
- Subject: Re: Pipes Again -- a simple test case
- Authentication-results: sourceware.org; auth=none
- References: <0aebd09993901f3ef3ff728d162952cd at xs4all dot nl> <568A32BE dot 4080101 at gmail dot com> <c7ebcc77c3ee94c4a81c48ebbdc81de9 at xs4all dot nl> <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>
Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> > > As a final point, I also tested FIFOs and (unix domain) sockets.
> > >
> > > FIFOs pass the test, sockets do not.
> >
> > Yes, that's expected. The underlying hack^Wmethod is the same for sockets
> > and pipes, while FIFOs have a real path on a real filesystem and thus have
> > a real inode number to fetch in stat/fstat.
>
> I applied a patch to make this work. Please give the latest developer
> snapshot from https://cygwin.com/snapshots/ a try.
Thank you!
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:
@@ ./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=30 minor=0
I-node number: 38037da0d28c3faf - decimal: 4036207820734742447
File size: 0 bytes
... using fstat()
File type: socket
Device containing i-node: (1e0000) major=30 minor=0
I-node number: 1 - decimal: 1
File size: 0 bytes
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=30 minor=0
I-node number: 38037da2d3885eb1 - decimal: 4036207829341200049
File size: 0 bytes
... using fstat()
File type: socket
Device containing i-node: (1e0000) major=30 minor=0
I-node number: 2 - decimal: 2
File size: 0 bytes
@@
Regards,
Henri
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple