Revert previous commit. The bug was actually caused by an issue

in pre 1.8.5 versions of sudo which were sending too many
SIGINTs to processes when the user hit Ctrl-C.

Pointed out by:	avg@, rpaulo@, sbruno@
This commit is contained in:
George V. Neville-Neil 2012-07-25 17:49:01 +00:00
parent 0e8e6a33c7
commit 96b3267700
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238776

View File

@ -70,8 +70,6 @@ typedef struct dtrace_cmd {
#define E_ERROR 1
#define E_USAGE 2
#define IMPATIENT_LIMIT 2
static const char DTRACE_OPTSTR[] =
"3:6:aAb:Bc:CD:ef:FGhHi:I:lL:m:n:o:p:P:qs:SU:vVwx:X:Z";
@ -1204,7 +1202,7 @@ intr(int signo)
if (!g_intr)
g_newline = 1;
if (g_intr++ > IMPATIENT_LIMIT)
if (g_intr++)
g_impatient = 1;
}