On Thu, Dec 20, 2001 at 12:09:09AM +1100, Joshua Goodall wrote: > On Wed, Dec 19, 2001 at 10:00:23AM +0200, Hugo van der Merwe wrote: > > I was wondering about an ssh session not closing until all the programs > > started in it are closed. How can I change this behaviour? Or maybe > > better, how can I modify my program to not be one of the programs it > > waits for?
> see http://www.openssh.com/faq.html#3.10 which (for shell) recommends a > shopt -s huponexit, Few if any of the scripts in /etc/init.d do this; should it be considered a bug? I've noticed that, with recent versions of ssh (i.e., it hasn't always been like this), I'll do: localsystem$ ssh remotesystem remotesystem$ su Password: remotesystem# /etc/init.d/randomdaemon restart remotesystem# exit remotesystem$ exit <hangs> Fortunately, I'm always doing this in an xterm, so I can just kill the terminal and whatever process(es) I left running on remotesystem will continue to run, but this doesn't seem like it's The Way Things Should Work. -- When we reduce our own liberties to stop terrorism, the terrorists have already won. - reverius Innocence is no protection when governments go bad. - Tom Swiss