search for: huponexit

Displaying 9 results from an estimated 9 matches for "huponexit".

2001 Jan 23
1
Workaround for hanging shells on exit
While browsing through bash's hugh manpage, I noticed that it has a 'huponexit' option which will send SIGHUP to all interactive processes when the shell exits. I have tested this and it does resolve the hanging at logout without causing race conditions. I now have a "shopt -s huponexit" in my /etc/bashrc and it works beautifully. -d -- | ``We've all he...
2002 Nov 15
1
workaround for 'hang on exit' bug does not seem to work
Hi, I am using Redhat 7.3 which comes with openssh 3.1p1. I am running an antivirus software called vexira on this server. It starts of 2 daemon processes in the background. Whenever I stop/start these daemons in an ssh session, it hangs. I added "shopt -s huponexit" (without the quotes) in /etc/bashrc, but the hangs still occur. Any advice on this would be appreciated Regards, Yusuf -- Yusuf Goolamabbas yusufg at outblaze.com
2002 Aug 08
2
The complete answer (was Re: so-called-hang-on-exit)
...may be that a suitable patch already exists for all I know. I don't know what is the exact Linux behaviour, but I rather suspect that it follows the SVR4 approach. Comments elsewhere in this thread indicate that Bash 2.x is configurable with respect to its behaviour on exit, through the 'huponexit' option. I advise you all to read the Bash man page - search for 'huponexit'. Which behaviour is best? To leave it to the shell to HUP/CONT its process groups before exiting? Or to leave it to the tty/pty driver to do the same? Each has its drawbacks, for example: the former can lead t...
2001 Apr 24
1
HELP! sftp hangs on exit / Bug?
...y hang when exiting. This can > > occur when there is an active background process. This is known to > > occur on Linux and HP-UX. The problem can be verified by doing > > the following: sleep 20&exit. > > > > A work around for bash users is to place "shopt -s huponexit" in > > either /etc/bashrc or ~/.bashrc. Otherwise, consult your shell's man > > page for an option to enable it to send a HUP signal to active > > jobs when exiting. > > I added 'shopt -s huponexit' to /etc/profile (since this > is the file sourced by ba...
2001 Feb 22
1
2.5.1p1 logout hangs after RHL crond start
The RHL 6.2 command "/etc/rc.d/init.d/crond start" prevents clean logout from compiled version of OpenSSH-2.5.1p1 on all hosts. The command "/etc/rc.d/init.d/crond stop" is OK. This occurs for interactive or command line requests. ssh remotehost /etc/rc.d/init.d/crond stop --- works every time ssh remotehost /etc/rc.d/init.d/crond start --- hangs every time Control-C will
2004 Jan 19
3
OpenSSH - forced command - no-pty issue
Hello Darren, The major problem we are running into is that the shell (both sh and ksh) does not kill its child processes when there is no pty. The SSH patch mentioned previously at http://bugzilla.mindrot.org/show_bug.cgi?id=396 is not sufficient to kill the forced command completely.It will only kill the shell script, but not any child processes the shell script runs. The shell assumes the
2002 Jan 23
1
[Bug 52] ssh hangs on exit
...oup. * Close the connection when the child dies. - Background commands may need to write data to the connection. Also prematurely truncates output from some commands (scp server, the famous "dd if=/dev/zero bs=1000 count=100" case). Known-good workarounds: * bash: shopt huponexit on * tcsh: none * zsh: setopt HUP (usually the default setting) (taken from email from Jason Stone to openssh-unix-dev, 5 May 2001) * pdksh: ? This appears to affect rsh as well: it behaves the same with 'sleep 20 & exit'. ------- You are receiving this mail because: ------- Y...
2001 Apr 05
0
HP-UX 9 problems (hangs on logout; tty isn't sane)
...rks just fine (the remote host is running ssh.com's sshd2 on Linux). * "ssh localhost" (no command) works fine *until* I try to logout. When I press Ctrl-D, the ssh client "hangs". I've read the FAQ, and no, I'm *not* running background jobs. "shopt -s huponexit" had no effect. In order to get control back in the terminal that ran "ssh localhost", I have to kill the ssh process from another window. * If I connect to the HP-UX sshd using Putty on a Win32 box, the terminal doesn't act correctly. Symptoms: + \n -> CRLF transla...
2001 May 04
19
SSH connection hanging on logout
I am running OpenSSH 2.9p1 on SunOS 5.7 w/4-24-2001 patch cluster. Like many other users I am seeing the hanging session on logout with background processes. This is a huge problem for me as I centrally manage 50+ machines with rdist across ssh. Instead of just complaining about the problem I thought I would put my CS degree to use and try to track down the problem myself. For starters,