[Bug 52] ssh hangs on exit

bugzilla-daemon at mindrot.org
Tue, 06 Feb 2007 06:42:19 -0000

------- Comment #44 from senthilkumar_sen at hotpop.com  2007-02-02 16:48
-------
I am under the impression that the latest patch is not fixing the
problem in HP-UX 11.11. I run the following to reproduce the problem.

# cat test1.ksh
#!/usr/bin/ksh
while (( 1 ))
do
sleep 10
done

# cat test2.ksh
#!/usr/bin/ksh
./test1.ksh &


------- Comment #45 from dtucker at zip.com.au  2007-02-05 17:10 -------
(In reply to comment #44)
> #!/usr/bin/ksh
> ./test1.ksh &

This leaves std{in,out,err} connected.  Try redirecting them to
/dev/null instead:

./test1/ksh </dev/null >/dev/null 2>&1


------- Comment #46 from senthilkumar_sen at hotpop.com  2007-02-06 17:42
-------
Yes, but that workaround doesn't need the patch. However, with latest
patch, there is no hang when I run test2.ksh and exit from the shell on
linux. But it is not the case with HP-UX. So Im wondering what the
patch is doing with respect to HP-UX.