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

Method Signal

pty/pty.go:77–77  ·  view source on GitHub ↗

Signal sends a signal to the command process. On non-windows systems, the returned error is as for os.Process.Signal(), on Windows it's as for os.Process.Kill().

(sig os.Signal)

Source from the content-addressed store, hash-verified

75 // returned error is as for os.Process.Signal(), on Windows it's
76 // as for os.Process.Kill().
77 Signal(sig os.Signal) error
78}
79
80// WithFlags represents a PTY whose flags can be inspected, in particular

Callers 15

FailMethod · 0.65
setCompleteMethod · 0.65
setFailMethod · 0.65
ForceStopMethod · 0.65
TestProvisionerJobFunction · 0.65
cleanStalePIDFileFunction · 0.65
ExecBackgroundFunction · 0.65
TestStartFunction · 0.65
TestStartFunction · 0.65
SignalMethod · 0.65

Implementers 2

windowsProcesspty/pty_windows.go
otherProcesspty/pty_other.go

Calls

no outgoing calls

Tested by 7

TestProvisionerJobFunction · 0.52
TestStartFunction · 0.52
TestStartFunction · 0.52
waitForSentinelFunction · 0.52
TestNewServer_SignalFunction · 0.52