Re: openssh refuses to close if open stderr/stdout/stdin
From: Nico Kadel-Garcia (nkadel@bellatlantic.net)Date: 04/23/02
- Next message: Oeyvind Pedersen: "Re: User SFTP Directory under win2000 server"
- Previous message: Nico Kadel-Garcia: "Re: User SFTP Directory under win2000 server"
- In reply to: Bill Unruh: "openssh refuses to close if open stderr/stdout/stdin"
- Next in thread: Bill Unruh: "Re: openssh refuses to close if open stderr/stdout/stdin"
- Reply: Bill Unruh: "Re: openssh refuses to close if open stderr/stdout/stdin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Nico Kadel-Garcia" <nkadel@bellatlantic.net> Date: Tue, 23 Apr 2002 03:24:07 GMT
"Bill Unruh" <unruh@string.physics.ubc.ca> wrote in message
news:aa1iln$inh$1@nntp.itservices.ubc.ca...
> Open ssh has changed the default in that it will refuse to close if
> there are any programs which still have open ports (eg stderr, stdout,
> stdin) through the link. This is a change in the procedures, and is a
> real real pain in the but, since a lot of programs are badly written and
> leave one of those ports dangling even if put into the background. This
> hangs the closing of ssh.
>
> Is there some variable I can set or some configuration I can do to get
> the old behaviour back again. It would be OK if it warned me about open
> ports, but it should then tell me which programs, and I should be able
> to shut the ssh link anyway if I want to.
>
> The current behaviour is terrible.
But it was important. If you closed the programs immediately, they might
leave interesting dangling jobs running that would be a problem later, or
have problems with wanting to send something important to stdout and stderr
that was unsafe not to cope with.
You've got a couple of user level options.
1: Redirect stdin/stdout/stderr to /dev/null when needed.
2: Run "screen" for interactive sessions, which will allow you to type
"exit" and leave the session alive until the shell terminates, but detach
from the screen process.
- Next message: Oeyvind Pedersen: "Re: User SFTP Directory under win2000 server"
- Previous message: Nico Kadel-Garcia: "Re: User SFTP Directory under win2000 server"
- In reply to: Bill Unruh: "openssh refuses to close if open stderr/stdout/stdin"
- Next in thread: Bill Unruh: "Re: openssh refuses to close if open stderr/stdout/stdin"
- Reply: Bill Unruh: "Re: openssh refuses to close if open stderr/stdout/stdin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|