delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/30/14:24:37

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 30 Sep 2009 14:24:09 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin 1.7 & mintty error - cannot run mintty more than once at a time
Message-ID: <20090930182409.GC12714@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <db95995b0909282146h39653926o95b74de1e9f32e30 AT mail DOT gmail DOT com> <416096c60909282303u700ef6dfs1fd903cd849a58e1 AT mail DOT gmail DOT com> <db95995b0909291654q1dcb3ebqe0b67e8aa20c5aac AT mail DOT gmail DOT com> <416096c60909292309i30f28632xe2c780daaf326f3f AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <416096c60909292309i30f28632xe2c780daaf326f3f@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
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 Wed, Sep 30, 2009 at 07:09:38AM +0100, Andy Koppe wrote:
>2009/9/30 David Antliff:
>>> From http://cygwin.com/problems.html: "Run 'cygcheck -s -v -r
>>>>cygcheck.out' and include that file as an attachment in your report.
>>
>> Done, although I've manually stripped out some company-specific info
>> I'd rather not publish on the Internet.
>
>Good idea.
>
>
>>> Also, which version of mintty are you using, and how exactly are you
>>> invoking it? And are you running 1.5 at the same time?
>>
>> According to the 'About' dialog, I am using 0.4.4, which came with
>> yesterday's Cygwin-1.7 fresh install.
>>
>> I'm invoking it from cygwin.bat like this (instead of bash --login -i):
>> cygstart mintty --size=88,30 -
>>
>> However I get the same problem if I simply run
>> c:\cygwin-1.7\bin\mintty.exe from a Windows cmd.exe prompt, when one
>> instance is already running.
>>
>> Yes, I am running various 1.5 processes (including mintty) at the same
>> time. I can try shutting down all 1.5 minttys if you like.
>
>Yes, I think that's worth trying. 1.5 and 1.7 should be able to run
>side-by-side, and it works for me, but who knows. Even better if you
>were able to shut down all Cygwin processes, or reboot.
>
>
>>  85  166760 [main] mintty 4336 fhandler_pipe::create_selectable:
>CreateNamedPipe: name \\.\pipe\cygwin-tty1-to-master, size 131072
>> 242  167002 [main] mintty 4336 fhandler_pipe::create_selectable: pipe busy
>
>The is a call to CreateNamedPipe in Cygwin's pty emulation failing
>with "ERROR_PIPE_BUSY". Helpfully, CreateNamedPipe's MSDN page makes
>no mention of it, but the code in pipe.cc has this:
>
>	case ERROR_PIPE_BUSY:
>	  /* The pipe is already open with compatible parameters.
>	     Pick a new name and retry.  */
>	  debug_printf ("pipe busy", name ? ", retrying" : "");
>	  break;
>
>In this case we don't retry because the name is fixed to
>"\\.\pipe\cygwin-tty1-to-master".
>
>This article suggests a call to WaitNamedPipe in case of
>ERROR_PIPE_BUSY:
>http://msdn.microsoft.com/en-us/library/aa365592%28VS.85%29.aspx. I've
>got no idea whether that would help here.
>
>cgf?

It shouldn't be necessary.

The tty code is supposed to avoid setting up more than one tty server
for the same tty number.  If there is an ERROR_PIPE_BUSY problem when
setting up cygwin-tty1-to-master that might indicate that some other
Cygwin process has already established a tty but the process is somehow
not sharing Cygwin's shared memory pool where this information is kept.

This is probably one of those cases where 1.5 and 1.7 can't coexist.  If
you're running pty processes from each then you'll have this 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019