Bug 77242

Summary: nohup doesn't work under openssh
Product: [Retired] Red Hat Linux Reporter: hjl
Component: opensshAssignee: Tomas Mraz <tmraz>
Status: CLOSED DUPLICATE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: franz.sirl-kernel
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-04 10:57:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
A patch
none
Hang-on-exit fix none

Description hjl 2002-11-04 03:38:17 UTC
When I ssh into RedHat 8.0

# nohup sleep 70&
# exit

ssh won't quit.

Comment 1 hjl 2002-11-04 05:05:47 UTC
Created attachment 83424 [details]
A patch

Comment 2 hjl 2002-11-04 05:06:28 UTC
I uploaded a patch, which seems to work for me. Any
comments?

Comment 3 franz.sirl-kernel 2002-12-29 12:45:52 UTC
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. 
 

Comment 4 franz.sirl-kernel 2003-02-06 23:21:48 UTC
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.

Comment 5 Tomas Mraz 2005-02-04 10:57:09 UTC

*** This bug has been marked as a duplicate of 39128 ***