Bug 587 - Control-C no longer honored
Control-C no longer honored
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.7.10
PC FreeBSD
: low high
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-10 16:35 MST by kbyanc
Modified: 2013-02-12 10:42 MST (History)
0 users

See Also:


Attachments
Fix location of call to save_signals() (585 bytes, patch)
2013-02-10 18:29 MST, Todd C. Miller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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