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: pipe data form windows program to cygwin program


Le mer 27/10/2004 Ã 21:37, Bob Byrnes a Ãcrit :
> > I'm writing a program which need to send data to a cygwin program using
> > a pipe on the stdin (actually data to compress using gzip).
> > 
> > All is working well but at the end of the program when i close the pipe
> > it seems that gzip doesn't see that the pipe has been closed and so it
> > stay open.
> 
> Are you *sure* that you have closed *all* of the write handles to the pipe?
> If any write handles remain open, then EOF won't be delivered to the
> read side of the pipe.
> 


i think i did, but even if i didn't the fact that the program exit
normally will close all open handles under windows,won't it ?



> > I kind of think there must be something with windows<->cygwin EOF but i
> > can't find out what.
> > 
> > Is anyone has an idea ?
> 
> If you can provide a (very) simple test case that exhibits allegedly
> incorrect behavior, that would be helpful.
> 

i will try to do this as soon as possible, thanks for help

bertrand

> --
> Bob
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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