From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18184 invoked by alias); 25 Oct 2003 10:17:48 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 18175 invoked from network); 25 Oct 2003 10:17:47 -0000 Received: from unknown (HELO cygbert.vinschen.de) (80.132.101.12) by sources.redhat.com with SMTP; 25 Oct 2003 10:17:47 -0000 Received: by cygbert.vinschen.de (Postfix, from userid 500) id 01A7458092; Sat, 25 Oct 2003 12:17:46 +0200 (CEST) Date: Sat, 25 Oct 2003 14:49:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: rsync local dir copy hang - solved for me Message-ID: <20031025101746.GB10718@cygbert.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <407DF7D68DD30440B5CEB70ED234D1CF03F871F6@excuswa100.americas.unity> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <407DF7D68DD30440B5CEB70ED234D1CF03F871F6@excuswa100.americas.unity> User-Agent: Mutt/1.4.1i X-SW-Source: 2003-10/txt/msg01630.txt.bz2 On Fri, Oct 24, 2003 at 07:41:54AM -0700, Bakken, Luke wrote: > It never got past cygwin_select(). > [...] > > The bottom point: *don't do that* ;-) > > i.e. leave the msleep() call there. > > If I leave msleep there, it hangs every time. So I'm taking it out. Now, But Hannu is right. Why not replace msleep(2) by usleep(20000)? AFAICS, it should fix the hang as well. Would you mind to try it? > I'm now going to see if > I can isolate the heart of the problem with a simple program that forks > and sleeps in the same fashion as with rsync. No worries, I have a working testcase which shows the hang. But thanks for the offer. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin@cygwin.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/