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 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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 Precedence: bulk List-Id: List-Unsubscribe: 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 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