Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
c83b2091
Commit
c83b2091
authored
Feb 24, 2005
by
Timothy Stack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a race between watchdog and garcia-pilot starting up.
parent
fa8d622e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tmcd/common/watchdog
tmcd/common/watchdog
+5
-5
No files found.
tmcd/common/watchdog
View file @
c83b2091
...
...
@@ -526,7 +526,7 @@ sub setintervals($)
if
(
$report
)
{
logmsg
("
setintervals: check=
$iv
{check}, isalive=
$iv
{isalive},
"
.
"
drift=
$iv
{drift}, cvsup=
$iv
{cvsup}, rusage=
$iv
{rusage},
"
.
"
hostkeys=
$iv
{hkeys} battery=
$iv
{batt}
\n
");
"
hostkeys=
$iv
{hkeys}
,
battery=
$iv
{batt}
\n
");
}
#
...
...
@@ -785,12 +785,11 @@ sub sendbatt($)
}
if
(
!
-
r
$battlog
)
{
logmsg
("
batt: no battery log
$battlog
\n
");
$iv
{
batt
}
=
0
;
return
;
logmsg
("
batt: no battery log yet
$battlog
\n
");
goto
resched
;
}
my
$line
=
`
tail -1
/var/log/battery.
log
`;
my
$line
=
`
tail -1
$batt
log
`;
my
$capacity
;
my
$voltage
;
...
...
@@ -837,6 +836,7 @@ sub sendbatt($)
}
}
resched:
#
# Set up for another interval.
# Since the tmcc call and update can take awhile, we update curtime
...
...
Write
Preview
Markdown
is supported
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