Bug 587

Summary: Control-C no longer honored
Product: Sudo Reporter: kbyanc
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: high    
Priority: low    
Version: 1.7.10   
Hardware: PC   
OS: FreeBSD   
Attachments: Fix location of call to save_signals()

Description kbyanc 2013-02-10 16:35:35 MST
HOW TO REPRODUCE:
 - run "sudo sleep 30"
 - press control-C
 - note that the sleep isn't interrupted

$ ./sudo -V
Sudo version 1.7.10p5
./sudo sleep 30
^C^C^C^C^C^C^C^C^C^C^C^C^C^C
(30 seconds elapse)
$
Comment 1 Todd C. Miller 2013-02-10 18:29:23 MST
Created attachment 361 [details]
Fix location of call to save_signals()

The signal state was being saved after some signals were set to ignore rather than before.  The attached patch fixes this and will be part of sudo 1.7.10p6 which will be released tomorrow.
Comment 2 Todd C. Miller 2013-02-12 10:42:53 MST
Fixed in sudo 1.7.10p6