INNER CODE UNIT · Go

writeCrioGoroutineStacks

cri-o/cri-o · cmd/crio/main.go:43

func writeCrioGoroutineStacks() {
	path := filepath.Join(
		os.TempDir(),
		fmt.Sprintf("crio-goroutine-stacks-%s.log", criocli.Timestamp()),
	)
	if err := utils.WriteGoroutineStacksToFile(path); err != nil {
		logrus.Warnf("Failed to write goroutine stacks: %s", err)
	}
}

func catchShutdown(
	ctx context.Context,
	cancel context.CancelFunc,
	gserver *grpc.Server,
	tp *sdktrace.TracerProvider,
	streamingServer *server.Server,
	hserver *http.Server,
	signalled *bool,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…