Skip to content

Commit 28c6fa9

Browse files
committed
pkg/manager: extend loop termination logging
There are still situations where we don't properly terminate fuzzing on context cancelation. Add more logging to debug it.
1 parent 1c7e938 commit 28c6fa9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/manager/diff.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,11 @@ func (kc *kernelContext) Loop(baseCtx context.Context) error {
494494
eg, ctx := errgroup.WithContext(baseCtx)
495495
kc.ctx = ctx
496496
eg.Go(func() error {
497+
defer log.Logf(1, "syz-diff (%s): rpc server terminaled", kc.name)
497498
return kc.serv.Serve(ctx)
498499
})
499500
eg.Go(func() error {
501+
defer log.Logf(1, "syz-diff (%s): pool terminated", kc.name)
500502
kc.pool.Loop(ctx)
501503
return nil
502504
})

0 commit comments

Comments
 (0)