delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/23/01:42:35

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 23 May 2001 01:41:50 -0400
From: linguist-cygwin AT rich-paul DOT net
To: cygwin AT cygwin DOT com
Subject: Re: ssh hanging
Message-ID: <20010523014150.A10597@monster.master-link.org>
References: <F147rblZz02H67yRLVb000046ca AT hotmail DOT com> <20010522193058 DOT B4807 AT monster DOT master-link DOT org> <20010522201059 DOT B8247 AT redhat DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.16i
In-Reply-To: <20010522201059.B8247@redhat.com>; from cgf@redhat.com on Tue, May 22, 2001 at 08:11:00PM -0400
X-Operating-System: Linux monster 2.2.18-crypt

tried several variations, no dice.  Even tried:

#!/bin/perl

close(STDIN);
close(STDERR);
open(STDOUT,">~/.sshagent");
system("ssh-agent");
close(STDOUT);

That was close.  Perhaps i'm getty a ctty effect, and should try
opening .sshagent with a diff filehandle before I close STDOUT.

Hmmm.


On Tue, May 22, 2001 at 08:11:00PM -0400, Christopher Faylor wrote:
> On Tue, May 22, 2001 at 07:30:58PM -0400, linguist-cygwin AT rich-paul DOT net wrote:
> >For what it's worth, I have a (somewhat) similar problem:
> >
> >bash$ nohup ssh-agent > ~/.ssh-agent &
> >bash$ exit
> >
> >causes the terminal window to hang there.  If I kill the term
> >window, ssh-agent may or may not die, but will not work.
> >
> >Latest of everything, AFAIK, and Win2K.
> 
> This is to be expected, if you are using CYGWIN=tty.  If you use
> CYGWIN=tty and running in a console window, cygwin won't allow the
> process to exit until the last user of the tty is gone.
> 
> Possibly doing this:
> 
> nohup ssh-agent > ~/.ssh-agent 2>&1 < /dev/null&
> 
> may work better.
> 
> cgf
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
> 

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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