When I ssh into RedHat 8.0 # nohup sleep 70& # exit ssh won't quit.
Created attachment 83424 [details] A patch
I uploaded a patch, which seems to work for me. Any comments?
I tried the patch with openssh-3.5p1-2 and it doesn't change anything for me, the logout is still delayed by 70 seconds if I use your example. BTW, I think this is a very long-standing bug in openssh, it was introduced already around 2.3/2.4 IIRC.
Created attachment 89907 [details] Hang-on-exit fix This is a port of the patch posted here: http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=102863079720412&w=2 to openssh-3.5p1-4. Besides that I also changed the default, so to get the hanging behaviour (no potential data loss) back, put "CloseOnSIGCHILD no" into your sshd_config. Seems to work fine so far on a 7.3 i686 and a rawhide PPC machine.
*** This bug has been marked as a duplicate of 39128 ***