MCPcopy Index your code
hub / github.com/docker/docker-agent / Stop

Method Stop

pkg/tools/builtin/shell/shell.go:662–675  ·  view source on GitHub ↗
(context.Context)

Source from the content-addressed store, hash-verified

660}
661
662func (t *ToolSet) Stop(context.Context) error {
663 // Terminate all running background jobs
664 t.handler.jobs.Range(func(_ string, job *backgroundJob) bool {
665 if job.status.CompareAndSwap(statusRunning, statusStopped) {
666 _ = kill(job.process, job.processGroup)
667 }
668 return true
669 })
670
671 // Tear down the sudo askpass helper (socket + wrapper script), if started.
672 t.handler.stopAskpass()
673
674 return nil
675}

Callers

nothing calls this directly

Implementers 15

StartableToolSetpkg/tools/startable.go
fakeToolSetpkg/tools/named_test.go
stubDescriberpkg/tools/startable_test.go
stubToolSetpkg/tools/startable_test.go
flappyToolSetpkg/tools/startable_test.go
listFlappyToolSetpkg/tools/startable_test.go
reportingToolSetpkg/tools/startable_test.go
reportingStartOnlyToolSetpkg/tools/startable_test.go
recoveryFailingToolSetpkg/tools/startable_test.go
codeModeToolpkg/tools/codemode/codemode.go
testToolSetpkg/tools/codemode/codemode_test.go
Toolsetpkg/tools/a2a/a2a.go

Calls 3

stopAskpassMethod · 0.80
killFunction · 0.70
RangeMethod · 0.45

Tested by

no test coverage detected