Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 10 Jun 2005 23:55:46 +0200 From: Corinna Vinschen To: "'cygwin AT cygwin DOT com'" Subject: Re: Re: Error piping data through a cygwin command using rsh (write system call fail) Message-ID: <20050610215546.GA25218@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: "'cygwin AT cygwin DOT com'" References: <20050609081844 DOT GE11065 AT calimero DOT vinschen DOT de> <60E7170809C4FC4E825DDF39B7ECDE743B1B6C AT hotmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <60E7170809C4FC4E825DDF39B7ECDE743B1B6C@hotmail.com> User-Agent: Mutt/1.4.2i On Jun 10 11:06, Johnny B. Goode wrote: > Also, the data leaves gzip without problems when piped through the pipeline > program, and the pipeline program then gets the error instead, which > indicates to me, that the error is not in the gzip program. It must be in > the system code behind the write call (since write actually returns a return > value that is not legal compared to the write call man page). Thanks for the testcase. It took some time to reproduce it (actually the error occured with quite different result on my machine) and to track it down, but I think I have found the culprit, an uninitialized variable in the socket sendto/sendmsg code. After having initialized it to 0, I'm now unable to get your example to fail. Or better: http://cygwin.com/acronyms/#WJFFM :-) Could you please try the next snapshot from http://cygwin.com/snapshots/ to see if it solves the problem for you? Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/