This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ssh hanging


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@rich-paul.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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]