delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/17/17:11:44

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <772li5l3a44hueai8u9j3g1ccj2rgl06d7@4ax.com>
References: <f18b7baa0912161805p4cd2ff8cte99b19a95e204440 AT mail DOT gmail DOT com> <772li5l3a44hueai8u9j3g1ccj2rgl06d7 AT 4ax DOT com>
Date: Thu, 17 Dec 2009 15:11:19 -0700
Message-ID: <f18b7baa0912171411l7ec900d5kae185dc458ccfd95@mail.gmail.com>
Subject: Re: Cygwin 1.7 GNU screen freezing when disconnected
From: Karim Ali <khadgar34+cygwin AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 Thu, Dec 17, 2009 at 1:06 PM, Andrew Schulman wrote:
> Karim, I'm afraid that I don't have much to offer here. =C2=A0A few thoug=
hts:
>
> After you kill ssh, what does screen -list say?

After I kill ssh, screen -list doesn't do anything. It basically
becomes unresponsive as well.

> You probably know that when you're connected to a screen session, there a=
re
> two screen processes, which communicate with each other through a socket.
> When you detach, the foreground screen process exits but the background o=
ne
> stays around, waiting for a new attach. =C2=A0It seems that when you kill=
 ssh,
> somehow data stops flowing to or from the background screen process from
> that socket. =C2=A0And that unfortunately is about as deep as my knowledg=
e of
> screen goes.
>
> strace can probably point to the problem, although I don't know if I have
> the ability to find it. =C2=A0Others on this list probably can. =C2=A0I w=
ould think
> of looking at strace output for the following:
>
> * the background screen process (i.e., the one that stays running when you
> detach from it) at the time you kill ssh, especially compared to when you
> detach from it normally.
>
> * the foreground and background screen processes when you try to reattach
> after having killed ssh. =C2=A0Again this might be most useful when compa=
red to
> a successful reattach after a normal detach.
>
> If you post or link to this, I'll take a look and maybe I or someone else
> can find the problem.

I'm sorry, I'm not really sure how to use strace. What I am currently
doing is (for the background process):
- Run screen, detach from the screen session
- Find the PID of the remaining screen process
- Attach to it with strace using: strace -o screen_bg -p <PID>
- Attach to the screen session, detach, reattach and then run 'exit'
in the session

After I do this strace has ended and the screen_bg file has no output
in it. Is there something I'm doing wrong or is this normal?

Thanks,
Karim

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