MCPcopy
hub / github.com/wavetermdev/waveterm / handleEOF

Method handleEOF

pkg/jobmanager/streammanager.go:326–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

324}
325
326func (sm *StreamManager) handleEOF() {
327 sm.lock.Lock()
328 defer sm.lock.Unlock()
329
330 log.Printf("handleEOF: PTY reached EOF, totalSize=%d", sm.buf.TotalSize())
331 sm.eofPos = sm.buf.TotalSize()
332 sm.terminalEvent = &streamTerminalEvent{isEof: true}
333 sm.drainCond.Signal()
334}
335
336func (sm *StreamManager) handleError(err error) {
337 sm.lock.Lock()

Callers 1

readLoopMethod · 0.95

Calls 1

TotalSizeMethod · 0.80

Tested by

no test coverage detected