so-called-hang-on-exit

Craig J Copi cjc5 at po.cwru.edu
Wed Aug 7 03:18:55 EST 2002


Nicolas.Williams at ubsw.com writes:
>
>What's the difference, again?

Using the following test:
#> ssh machinename
#> (sleep 10; echo hi) &
#> exit

I get the following results.
H == Hang, wait for sleep, print hi, then exit
NH == Exit immediately (hi not printed)

client\server |  Linux  | OpenBSD
--------------+---------+--------
Linux         |    H    |  NH
OpenBSD       |    H    |  NH


Using the following test:
#> ssh machinename '(sleep 10; echo hi) &'

I get the following results.

client\server |  Linux  | OpenBSD
--------------+---------+--------
Linux         |    H    |  H
OpenBSD       |    H    |  H

Note:
Linux == RH7.3 w/updates
OpenBSD == 3.1 w/updates
OpenSSH 3.4[p1] w/privsep running on test machines.

So why does this happen.  People seem to expect the OpenBSD behavior
eventhough you don't get the "hi" printed in the first test case.

Craig



More information about the openssh-unix-dev mailing list