delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/06/22/03:58:54

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 22 Jun 2011 09:58:06 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problem with 20110616 snapshot, ssh-agent, and mintty
Message-ID: <20110622075806.GN3437@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4E012E08 DOT 6010504 AT acm DOT org>
MIME-Version: 1.0
In-Reply-To: <4E012E08.6010504@acm.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
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 Jun 21 16:49, David Rothenberger wrote:
> I'm having a problem with recent snapshots, including the 20110616
> snapshot. I normally start ssh-agent using keychain as part of my
> bash startup. The problem I have is that once the bash process that
> starts the ssh-agent process exits, subsequent starts of mintty
> fail.
> 
> Here's an example:
> 
> ----------------------------------------------------------------------
> C:\Users\drothe>uname -a
> CYGWIN_NT-6.1-WOW64 tela64 1.7.10s(0.248/5/3) 20110616 23:01:21 i686 Cygwin
> 
> C:\Users\drothe>bash --norc
> bash-4.1$ mintty bash --norc -c 'ssh-agent'

I don't understand the sense in this one.  Shouldn't that be

  eval `ssh-agent`

so you set the environment variables for the subsequent processes?

> bash-4.1$ mintty bash --norc
> ----------------------------------------------------------------------
> 
> That last start of mintty fails with the message "Failed to fork
> child process: No such file or directory."

Right.  In the last call, when mintty opens a pty, Cygwin tries to
create tty0 because, apparently, it thinks tty0 is not in use.  This
fails with a "pipe busy".  For some reason ssh-agent still holds handles
to the pipes which constitute tty0 created by the mintty from which
it has been started but Cygwin forgot about it.

I applied a patch which seems to do the trick.


Thanks for the report,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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