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


On Jan 11 15:35, Henri wrote:
> 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
> @@ 

Can you please provide the socket testcase?


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: signature.asc
Description: PGP signature


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