delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/17/09:59:44

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=BXv3yOsZVtZimrJcAWg79FWAhD7zSkU5GLXjbajB1KDR0lqRJf6PY
+49gdDj/L6Ma4KTqbsC6RKCjxbRHqax7RoTJxR9K6meVFHyZVOp3FOwtSGwbLDTb
Zw3veSeJkEPTGvIMrAq9egKR24YUhKgSQ3IFzw8VsZPqUwfSRgvxvg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=2IwlMFaGQjlKQk+ULCTwFqk2TSA=; b=vlbmLRUj2+4ZASRuguPlxDsvN8LD
5B6Yf7HyqtyZ5XmFB7FHae2L1lsy7bhJYiu+pEH0NwNv1NeC/GOnnoRZG6DK4IKj
BgUUe2RDCbQuJ3GinR/IadFHEjp1Cr7YQSsQFRF734LKPw8ivllLRcsz6iXYeHbH
qYDu3IUc9zP79m8=
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
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_RX autolearn=ham version=3.3.1
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1/r48X/XH67pAvsSnJfTK4O
Date: Mon, 17 Jun 2013 09:58:35 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: pty issue causes 'screen' to hang when run from mintty as detached
Message-ID: <20130617135835.GA852@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <51B63D88 DOT 6000508 AT codespunk DOT com> <phscr81sr0kr02qenquh1s0na4n062u3so AT 4ax DOT com> <CAHWeT-Y0DE4sANnm9yFDooFOmD8VHqLk4jMDe2SOFkBFo5wGog AT mail DOT gmail DOT com> <uhntr81q9q7rr07f131rrkhij32amghs5l AT 4ax DOT com>
MIME-Version: 1.0
In-Reply-To: <uhntr81q9q7rr07f131rrkhij32amghs5l@4ax.com>
User-Agent: Mutt/1.5.20 (2009-06-14)

On Mon, Jun 17, 2013 at 06:08:27AM -0400, Andrew Schulman wrote:
>> > Do we have any idea whether the problem is with mintty or with screen?
>> 
>> I observed the same behaviour as the OP, but also reproduced it in
>> rxvt and xterm, so not a mintty issue. Since it works in a console,
>> the Cygwin pty layer has to be the main suspect, unless screen has
>> specfic code for Cygwin consoles or ptys?
>
>I don't think so, but there's one big, crufty old patch that I had to use to get
>screen to run a few years ago.
>
>The version of screen that we're using now in Cygwin, 4.0.3, is about 8 years
>old.  There haven't been any official new releases since then, but development
>has continued and there have been a lot of improvements.  I'm in the process of
>building an updated package from the latest git, and that version appears not to
>need any of the patches I used to have to use to get screen to compile and run
>in Cygwin.
>
>So, I suggest that we wait until the new screen test release comes out, within a
>few days, and see if that fixes the problem.

I looked at this briefly over the weekend and saw a problem in Cygwin's
pty handling code.  I don't know exactly what the problem is yet but there
is something not quite right there.  Something is closing a windows handle
and that's causing a SIGHUP to be sent to the pty owner.  That's not right.

I'll fix this problem eventually but it will be interesting to see if a
newer screen behaves any better.

cgf

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