X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,SARE_SUB_ENC_UTF8,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Robert F Subject: Re: Madness with the 'select' function, sigalrm, and stdout. =?utf-8?b?KENZR1dJTl9OVC02LjEtV09XNjQp?= Date: Tue, 17 Jan 2012 23:24:56 +0000 (UTC) Lines: 33 Message-ID: References: <4F15F549 DOT 5010403 AT cygwin DOT com> <4F15F5F9 DOT 4070000 AT cygwin DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Larry Hall (Cygwin cygwin.com> writes: > Your advice did solve the problem, thanks! I wonder which specific entry in the changelog did it... 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 #include 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... -- 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