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=qWuM7+S3clTvtBM8rhUzYzzGHt6+NIDKbJPDY+WYt6PniLLkXP3kY YKO0YSkb9D6t4jQXXbLwHk+Yzhsiv79bnidSqGI30QhQ5GCI5dS1mZdbqf5D/n4p rWNvk64D28TxJTOmcv35jCRNt5gxxdHXCAeBImIlV93vXxmBqgr6zM= 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=dlPak5+uyLB2e0CPT9lCP/1pEaw=; b=BsXk7dkLqYlBYDeX+tAjNDQuLPds vyAdgNVXNLFSc/tHvts6h1MuFDODXwFEG0Gu/r83CMxqyLJ1Vmxbt9iR9StedoiY 9ewqKPEGFXsj/zAxqnhLc8cgfwA5e6wAbJoccbAdNCy+wFvB4fKgRI2YM4/34dec 12ANQBuDIgwUuwQ= 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 X-Spam-SWARE-Status: No, score=-1.9 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: U2FsdGVkX19NhOD78totX/sWg1B80WlQ Date: Wed, 3 Jul 2013 16:31:20 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: pty issue causes 'screen' to hang when run from mintty as detached Message-ID: <20130703203120.GA4528@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> <20130617135835 DOT GA852 AT ednor DOT casa DOT cgf DOT cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130617135835.GA852@ednor.casa.cgf.cx> User-Agent: Mutt/1.5.20 (2009-06-14) On Mon, Jun 17, 2013 at 09:58:35AM -0400, Christopher Faylor wrote: >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. This problem should be fixed in the upcoming snapshot. It was a longstanding bug in the pty code. Thanks for providing the succinct steps required to duplicate the problem. 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