so-called-hang-on-exit
Jim Knoble
jmknoble at pobox.com
Thu Aug 8 04:52:50 EST 2002
Circa 2002-08-07 01:54:46 -0700 dixit Frank Cusack:
: Hence my earlier question, what does 'ssh -t 0 "yes & exit"' do on OpenBSD?
Here's what happens here:
$ uname -srvm
OpenBSD 3.1 GENERIC#1 i386
$ ssh -t localhost 'yes & exit'
$ ssh -t localhost 'yes & sleep 1; exit'
y
y
y
[etc., for 1 second]
$
Note, though, that the same thing happens on Linux with bash-2.x's
'huponexit' option set:
$ uname -srvm
Linux 2.2.20-1jmk.rh62.ow1 #1 Mon Nov 5 17:38:17 EST 2001 i586
$ ssh localhost 'shopt |grep -i hup'
huponexit on
$ ssh -t localhost 'yes & exit'
$ ssh -t localhost 'yes & sleep 1; exit'
y
y
y
[etc., for 1 second]
$
--
jim knoble | jmknoble at pobox.com | http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 262 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20020807/b9a83801/attachment.bin
More information about the openssh-unix-dev
mailing list