Re: SSH hangs on exit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jonathan Underwood <j.underwood <at> open.ac.uk> writes:

> 
> Mike Klinke wrote:
> > On Wednesday 09 November 2005 10:01, Brian D. McGrew wrote:
> > 
> >>Life is good with SSH but when I'm done and type 'exit' to leave
> >>my session it's hung on the client side and I have to kill it.
> >> Anyone ever seen this before?  Client is FC3, doesn't matter
> >>what OS the server is, RHEL, FC3, FC4 and RH7.3???
> > 
> > 
> > This is a FAQ..
> > 
> > http://www.openssh.org/faq.html#3.10
> 
> I am actually seeing this behaviour if I start a process using nohup on 
> the server, with all output redirected to files. Surely then, ssh should 
> exit cleanly? (but it doesn't). I've  never been sure if this is a bug.
> 

Well, you've redirected the output, but how about the *input*?  i.e. are you
doing (on bash, anyway):

$ nohup process < /dev/null > output.log 2>&1 &

If you don't redirect the input as well, the shell won't realize it doesn't have
a console to work with.

HTH,
Tim



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux