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

Method waitInternal

pty/pty_other.go:177–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175}
176
177func (p *otherProcess) waitInternal() {
178 // The GC can garbage collect the TTY FD before the command
179 // has finished running. See:
180 // https://github.com/creack/pty/issues/127#issuecomment-932764012
181 p.cmdErr = p.cmd.Wait()
182 runtime.KeepAlive(p.pty)
183 close(p.cmdDone)
184}
185
186// ptmReader wraps a reference to the ptm side of a pseudo-TTY for portability
187type ptmReader struct {

Callers 1

startPtyFunction · 0.95

Calls 2

KeepAliveMethod · 0.80
WaitMethod · 0.65

Tested by

no test coverage detected