delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/17/18:49:11

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=4.8 required=5.0 tests=AWL,BAYES_50,BOTNET,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-id: <4F1608D3.6060208@cygwin.com>
Date: Tue, 17 Jan 2012 18:48:35 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Madness with the 'select' function, sigalrm, and stdout. (CYGWIN_NT-6.1-WOW64)
References: <loom DOT 20120117T231256-287 AT post DOT gmane DOT org> <4F15F549 DOT 5010403 AT cygwin DOT com> <4F15F5F9 DOT 4070000 AT cygwin DOT com> <loom DOT 20120118T001154-388 AT post DOT gmane DOT org>
In-reply-to: <loom.20120118T001154-388@post.gmane.org>
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

On 1/17/2012 6:24 PM, Robert F wrote:
> Larry Hall (Cygwin<reply-to-list-only-lh<at>  cygwin.com>  writes:
>>
>
> Your advice did solve the problem, thanks!  I wonder which specific entry in the
> changelog did it...

Great!  I thought you might at least see some different behavior.  There has
been a fair bit of work done in this area for the upcoming release, which
will be "soon".

> The unwillignness to show any text until it finds a newline seems it could be a
> cygwin issue.  Taking the following code:
>
> #ifndef __CYGWIN__
> #define SLEEP _sleep(2000)
> #else
> #define SLEEP sleep(2)
> #endif
> #include<stdio.h>
> #include<stdlib.h>
> int main() {
>   int i;
>   while(1) {
>    for(i = 0; i<  5; i++) {
>     printf("%c", 'a'+i);
>     SLEEP;
>    }
>    SLEEP;
>    printf("\n");
>   }
> }
>
> When built in visual C++, it will show 'a', 'b', 'c' etc every 2 seconds.  When
> built in cygwin with gcc, it will show 'abcde' every 10 seconds.  The latter
> happens whether I run it from a bash console or windows console.
>
> I'll start a new thread for this if noone off-handedly has the answer...

So you're saying the snapshot exhibits the above behavior?


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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