Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Originating-IP: [24.0.161.175] From: "Karl M" To: cygwin AT cygwin DOT com Subject: Re: Problems with executing X11 programs via ssh Date: Sat, 25 Aug 2001 19:47:29 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 26 Aug 2001 02:47:29.0983 (UTC) FILETIME=[72C634F0:01C12DD9] Hi Chris... I understand your frustration...BUT please also consider my perspective. The situation is that I traced the problem as far as I could (which was already a significant amount of work). What I found was that the "central" select call in the ssh client hangs (never returns) after the fourth or fifth call (it was repeatable--I just don't recall now) when (and only when) the ssh client had forked off into the background (using the -f option). What I found while trying to track it down was that if I added a one second timeout to the select call to force it to return, it did so...AND that there was data available, so it should have in fact returned wthout this timeout. I was unable to follow the flow through the Cygwin (note the lower case w) DLL with multiple processes. So, for the time being, I put a one second timeout in the "central" select call of the ssh client. It was not too expensive, and it stoped the hanging. I reported my results to this list and Corinna commented that it did not look like a ssh bug (and thus a Cygwin bug). When I see people with the same problem post on this list (ssh client hanging when using the -f option with a command), I offer this to help...because it "fixes the problem for now". I make my comment because I feel it is only a workaround. Time permitting, I will learn more and dig deeper...but for now, this is the limit of my digging ability. I too would like to see it fixed in the DLL. That is why I posted my results on this list. Specifically, the problem occurs (every time) with ssh -f localhost sleep 30 on a win2k box with the current versions from setup. Please let me know how I can be of further assistance. Thanks, ...Karl >From: Christopher Faylor >Reply-To: cygwin AT cygwin DOT com >To: cygwin AT cygwin DOT com >Subject: Re: Problems with executing X11 programs via ssh >Date: Sat, 25 Aug 2001 14:16:32 -0400 > >On Fri, Aug 24, 2001 at 08:15:15PM -0700, Karl M wrote: > >Hi Earl... > > > >That looks like the problem I had. See my patch attached to the e-mail > >titled > > > >ssh hanging with -f option--a workaround (July 27, 2001). > > > >on this list. This is not a proper fix...it is a workaround for what I > >believe is a Cygwin bug that shows up in a select call after forking. > > > >I hope this helps. Let me (and the list) know if this fixes it for you. > >Of course, we never really have "proper fixes" from anyone here. >"Workarounds" and speculation are a lot easier than applying brain power >to actually fix a problem. > >cgf > >-- >Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple >Bug reporting: http://cygwin.com/bugs.html >Documentation: http://cygwin.com/docs.html >FAQ: http://cygwin.com/faq/ > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/