aboutsummaryrefslogtreecommitdiffstats
path: root/syz-ci/managercmd.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-07-11 17:09:04 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-07-12 08:22:44 +0200
commitc1147c8df73eb61bc9d66e6628e0369e21f28670 (patch)
tree1f5f75bf13a32941025c134fdd236fb137cf3181 /syz-ci/managercmd.go
parent0faffd0438df859fb66236085ac3992735900d26 (diff)
all: fix comments format
Fix capitalization, dots at the end and two spaces after a period. Update #1876
Diffstat (limited to 'syz-ci/managercmd.go')
-rw-r--r--syz-ci/managercmd.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/syz-ci/managercmd.go b/syz-ci/managercmd.go
index eee09d151..cc91c3020 100644
--- a/syz-ci/managercmd.go
+++ b/syz-ci/managercmd.go
@@ -70,8 +70,8 @@ func (mc *ManagerCmd) loop() {
}()
for closing != nil || cmd != nil {
if cmd == nil {
- // cmd is not running
- // don't restart too frequently (in case it instantly exits with an error)
+ // The command is not running.
+ // Don't restart too frequently (in case it instantly exits with an error).
if time.Since(started) > restartPeriod {
started = time.Now()
osutil.Rename(mc.log, mc.log+".old")
@@ -96,7 +96,7 @@ func (mc *ManagerCmd) loop() {
}
}
} else {
- // cmd is running
+ // The command is running. Check if we need to kill it.
if closing == nil && time.Since(interrupted) > interruptTimeout {
log.Logf(1, "%v: killing manager", mc.name)
cmd.Process.Kill()