Bug 77242 - nohup doesn't work under openssh
nohup doesn't work under openssh
Status: CLOSED DUPLICATE of bug 39128
Product: Red Hat Linux
Classification: Retired
Component: openssh (Show other bugs)
8.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tomas Mraz
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-11-03 22:38 EST by hjl
Modified: 2007-04-18 12:48 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-02-04 05:57:09 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
A patch (539 bytes, patch)
2002-11-04 00:05 EST, hjl
no flags Details | Diff
Hang-on-exit fix (8.30 KB, patch)
2003-02-06 18:21 EST, franz.sirl-kernel
no flags Details | Diff

  None (edit)
Description hjl 2002-11-03 22:38:17 EST
When I ssh into RedHat 8.0

# nohup sleep 70&
# exit

ssh won't quit.
Comment 1 hjl 2002-11-04 00:05:47 EST
Created attachment 83424 [details]
A patch
Comment 2 hjl 2002-11-04 00:06:28 EST
I uploaded a patch, which seems to work for me. Any
comments?
Comment 3 franz.sirl-kernel 2002-12-29 07:45:52 EST
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 18:21:48 EST
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 05:57:09 EST

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

Note You need to log in before you can comment on or make changes to this bug.