aboutsummaryrefslogtreecommitdiffstats
path: root/syz-ci
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-02-01 17:38:36 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2023-02-01 17:51:21 +0100
commit3c726d4dfc9d67f09b8beb8c8cf8447d708eead6 (patch)
treec37327c8cb7cfb53327946a41804cfefd52a6096 /syz-ci
parent9a6f477c8db8de69698177a2dfbb029451cafcd3 (diff)
syz-ci: properly stop jobs
The stop channel must be closed in order to pass the signal to all listeners.
Diffstat (limited to 'syz-ci')
-rw-r--r--syz-ci/jobs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/syz-ci/jobs.go b/syz-ci/jobs.go
index 039b32ee7..d818d6a73 100644
--- a/syz-ci/jobs.go
+++ b/syz-ci/jobs.go
@@ -73,7 +73,7 @@ func (jm *JobManager) startLoop(wg *sync.WaitGroup) func() {
done <- struct{}{}
}()
return func() {
- stop <- struct{}{}
+ close(stop)
<-done
}
}