svn commit: r238776 - head/cddl/contrib/opensolaris/cmd/dtrace
George V. Neville-Neil
gnn at FreeBSD.org
Wed Jul 25 17:49:01 UTC 2012
Author: gnn
Date: Wed Jul 25 17:49:01 2012
New Revision: 238776
URL: http://svn.freebsd.org/changeset/base/238776
Log:
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@
Modified:
head/cddl/contrib/opensolaris/cmd/dtrace/dtrace.c
Modified: head/cddl/contrib/opensolaris/cmd/dtrace/dtrace.c
==============================================================================
--- head/cddl/contrib/opensolaris/cmd/dtrace/dtrace.c Wed Jul 25 17:42:57 2012 (r238775)
+++ head/cddl/contrib/opensolaris/cmd/dtrace/dtrace.c Wed Jul 25 17:49:01 2012 (r238776)
@@ -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;
}
More information about the svn-src-head
mailing list