delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/09/13:42:57

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4D77CA26.1030200@tweerlei.de>
Date: Wed, 09 Mar 2011 19:42:46 +0100
From: Robert Wruck <wruck AT tweerlei DOT de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.16) Gecko/20101125 Lightning/1.0b1 Thunderbird/3.0.11
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.8: write fails with EAGAIN
References: <4D72992D DOT 4090007 AT tweerlei DOT de> <20110307103951 DOT GL6393 AT calimero DOT vinschen DOT de> <4D77C5CB DOT 1040909 AT tweerlei DOT de>
In-Reply-To: <4D77C5CB.1040909@tweerlei.de>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

> Surprisingly, this returns FALSE / nbytes = 0 / GetLastError =
> ERROR_INVALID_HANDLE on WinXP if the number of bytes exceeds some
> maximum and the handle refers to a pipe.
> Since you don't know what kind of handle you're writing to in
> write_overlapped, it seems reasonable to do the write in chunks.

Sorry, I made a mistake.
The value returned by GetLastError() is 1450 / ERROR_NO_SYSTEM_RESOURCES.


-Robert

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

- Raw text -


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