www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/27/15:37:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Bob Byrnes" <byrnes AT curl DOT com>
Date: Wed, 27 Oct 2004 15:37:37 -0400
In-Reply-To: <1098879666.4197.4.camel@bma.sysgo.com> from bertrand marquis (Oct 27, 2:21pm)
Organization: Curl Corporation
X-Address: 1 Cambridge Center, 10th Floor, Cambridge, MA 02142-1612
X-Phone: 617-761-1238
X-Fax: 617-761-1201
To: cygwin AT cygwin DOT com
Subject: Re: pipe data form windows program to cygwin program
Message-Id: <20041027193737.BAA5AE55A@wildcard.curl.com>

> 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 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.

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019