MCPcopy Index your code
hub / github.com/coder/coder / cmdCancel

Function cmdCancel

agent/agentssh/exec_other.go:19–22  ·  view source on GitHub ↗
(logger slog.Logger, p *os.Process)

Source from the content-addressed store, hash-verified

17}
18
19func cmdCancel(logger slog.Logger, p *os.Process) error {
20 logger.Debug(context.Background(), "cmdCancel: sending SIGHUP to process and children", slog.F("pid", p.Pid))
21 return syscall.Kill(-p.Pid, syscall.SIGHUP)
22}

Callers 3

startNonPTYSessionMethod · 0.70
CloseMethod · 0.70

Calls 1

KillMethod · 0.65

Tested by 1