pipe data form windows program to cygwin program

2004-10-27 Thread bertrand marquis
Hi, 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.

Re: pipe data form windows program to cygwin program

2004-10-27 Thread Bob Byrnes
> 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.

Re: pipe data form windows program to cygwin program

2004-10-27 Thread bertrand marquis
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

Re: pipe data form windows program to cygwin program

2004-10-28 Thread bertrand marquis
hi again, i join to this mail an example. This must be compiled with mingw compiler. the program is going great but at the end gzip( or you can try with cat to see that data is in output file) stay open. bertrand Le mer 27/10/2004 Ã 21:37, Bob Byrnes a Ãcrit : > > I'm writing a program which

Re: pipe data form windows program to cygwin program

2004-10-28 Thread Bob Byrnes
> | 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 wi

Re: pipe data form windows program to cygwin program

2004-10-29 Thread bertrand marquis
Hi bob thanks for your help, i solve the problem bny using only windows functions to have a pipe and that is working well. It seems that posix and windows doesn't work well together. bertrand Le ven 29/10/2004 Ã 04:18, Bob Byrnes a Ãcrit : > > | Are you *sure* that you have closed *all* of th