MCPcopy Index your code
hub / github.com/github/copilot-sdk / killProcess

Method killProcess

go/client.go:1932–1940  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1930}
1931
1932func (c *Client) killProcess() error {
1933 if p := c.osProcess.Swap(nil); p != nil {
1934 if err := p.Kill(); err != nil {
1935 return fmt.Errorf("failed to kill CLI process: %w", err)
1936 }
1937 }
1938 c.process = nil
1939 return nil
1940}
1941
1942func (c *Client) killProcessAndWait() error {
1943 done := c.processDone

Callers 4

StartMethod · 0.95
ForceStopMethod · 0.95
startCLIServerMethod · 0.95
killProcessAndWaitMethod · 0.95

Calls 1

KillMethod · 0.80

Tested by

no test coverage detected