This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: pipe handling errors
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 16 Jul 2014 10:28:12 -0400
- Subject: Re: pipe handling errors
- Authentication-results: sourceware.org; auth=none
- References: <20140715222719 dot GB4648 at ednor dot casa dot cgf dot cx> <0D835E9B9CD07F40A48423F80D3B5A702E7ECA06 at USA7109MB022 dot na dot xerox dot net>
- Reply-to: cygwin at cygwin dot com
On Wed, Jul 16, 2014 at 12:44:25PM +0000, Nellis, Kenneth wrote:
>From: Christopher Faylor
>>On Tue, Jul 15, 2014 at 06:05:27PM -0400, Christopher Faylor wrote:
>>>Yes, I saw that, but I can't duplicate the problem with that command sequence.
>>
>>I took a stab at another change which may ameliorate the problem. Please try the latest snapshot.
>
>Indeed, with this snapshot I was not able to reproduce the problem. Thank you!
>
>Cygwin64> uname -srvmo
>CYGWIN_NT-6.1 1.7.31s(0.272/5/3) 20140716 11:15:29 x86_64 Cygwin
Good to hear. Thanks for confirming.
For the curious, I increased the size of the signal pipe buffer. I
should have done that when I made signal pipes "nowait" to work around
problems with gdb a couple of releases ago. I also made the signal
sender retry if WriteFile returns success but the number of bytes sent
was not what was requested (since these are message-style pipes the
size should always be either zero or correct).
Increasing the size of the buffer should have been enough to fix the
problem but, when possible, I like to use two forms of protection when I
fix a bug.
--
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