Bug 431

Summary: sudo -s in 1.7.4 with HAVE_PAM forks and waits but child bash hung after suspend
Product: Sudo Reporter: SBertilson <ssb>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.7.4   
Hardware: All   
OS: Linux   
Attachments: Patch to pass on SIGCONT when sudo resumes after suspend

Description SBertilson 2010-08-24 00:59:22 MDT
HAVE_PAM activates CMND_WAIT which causes a fork/exec rather than a pure exec.  When I "suspend" the resulting bash session and try "fg" to bring it back, the sudo continues, but the bash remains stopped.  If I SIGCONT the bash, it works fine until the next suspend.
Comment 1 Todd C. Miller 2010-08-24 08:44:41 MDT
Created attachment 287 [details]
Patch to pass on SIGCONT when sudo resumes after suspend

I've attached a patch which fixes this.  It will be part of sudo 1.7.5.
Comment 2 Todd C. Miller 2010-09-14 16:41:21 MDT
Fixed in sudo 1.7.4p4