Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
cf43a00b
Commit
cf43a00b
authored
Jan 30, 2003
by
Mac Newbold
Browse files
Move mail throttle setup before the first place you could possible send mail.
parent
126635bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
event/stated/stated.in
View file @
cf43a00b
...
...
@@ -86,6 +86,11 @@ my $TBNODEOPMODE = TBDB_TBEVENT_NODEOPMODE;
my
$TBCONTROL
=
TBDB_TBEVENT_TBCONTROL
;
my
$TB_OSID_MBKERNEL
=
TB_OSID_MBKERNEL
;
# Set up some notification throttling
my
$mailgap
=
15
;
# in seconds
my
$lastmail
=
time
()
-
$mailgap
+
2
;
# Send a digest of startup msgs after 2s.
my
%msgs
=
();
my
$pidfile
;
$pidfile
=
"
$TB
/locks/stated.pid
";
debug
("
Using pidfile
$pidfile
\n
");
...
...
@@ -166,11 +171,6 @@ $SIG{ABRT} = \&cleanup;
$SIG
{
TERM
}
=
\
&cleanup
;
$SIG
{
KILL
}
=
\
&cleanup
;
# Set up some notification throttling
my
$mailgap
=
15
;
# in seconds
my
$lastmail
=
time
-
$mailgap
+
2
;
# Send a digest of startup msgs after 2s.
my
%msgs
=
();
# Track if I handled an event or not
my
$event_count
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment