This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Pipes Again -- a simple test case


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]