<div dir="ltr">ssh won't exit unless all virtual links, such as the X forwarding, are also gone.  I think there are some bugs related to that (I'm pretty sure it isn't dragonfly specific).  So running with X forwarding can cause the situation you describe.<div><div><br></div><div>-Matt</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 5, 2019 at 12:15 PM Steffen Nurpmeso <<a href="mailto:steffen@sdaoden.eu">steffen@sdaoden.eu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Pierre Abbat wrote in <12216388.yjY6BSWRI4@mooncat>:<br>
 |On Thursday, 5 December 2019 03.48.18 EST Harald Brinkhof wrote:<br>
 |> Maybe some background processes keep running and prevent the X program \<br>
 |> from<br>
 |> sitting down?<br>
 |> <br>
 |> <a href="http://www.snailbook.com/faq/background-jobs.auto.html" rel="noreferrer" target="_blank">http://www.snailbook.com/faq/background-jobs.auto.html</a><br>
 |<br>
 |The examples at the top of that page don't make sense. If I start an \<br>
 |xterm in <br>
 |an ssh session, and log out of the ssh session with the xterm still \<br>
 |running, I <br>
 |expect ssh to keep running until I close the xterm. When I ssh into \<br>
 |leopard, <br>
 |my local mail server, and forward the mail ports, the ssh session hangs on <br>
 |exit, because kmail still has the mail ports open.<br>
 |<br>
 |When I shelled into zyxomma, I exited each program before logging out \<br>
 |of ssh. <br>
 |I don't understand why one ssh session closed and the other hung.<br>
<br>
Does it still hang when ControlMaster exits?<br>
I have seen this on Linux->Linux (same host even) with<br>
X forwarding in muxer sessions, but it went away as rolling<br>
updates flew by.  (At the moment i have <br>
<br>
  Load key "/home/steffen/....local_ed25519.pub": invalid format<br>
<br>
that that makes no sense :})<br>
<br>
 |Pierre<br>
 |-- <br>
 |loi mintu se ckaji danlu cu jmaji<br>
 --End of <12216388.yjY6BSWRI4@mooncat><br>
<br>
--steffen<br>
|<br>
|Der Kragenbaer,                The moon bear,<br>
|der holt sich munter           he cheerfully and one by one<br>
|einen nach dem anderen runter  wa.ks himself off<br>
|(By Robert Gernhardt)<br>
</blockquote></div>