mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
ignore ptmx error (#608)
This commit is contained in:
parent
21d0dd076b
commit
fcf8e4ed44
@ -197,11 +197,7 @@ func StreamCommandWithExtraFd(ctx context.Context, ecmd *exec.Cmd, outputCh chan
|
|||||||
go func() {
|
go func() {
|
||||||
// ignore error (/dev/ptmx has read error when process is done)
|
// ignore error (/dev/ptmx has read error when process is done)
|
||||||
defer outputWg.Done()
|
defer outputWg.Done()
|
||||||
err := utilfn.CopyToChannel(outputCh, cmdPty)
|
utilfn.CopyToChannel(outputCh, cmdPty)
|
||||||
if err != nil {
|
|
||||||
errStr := fmt.Sprintf("\r\nerror reading from pty: %v\r\n", err)
|
|
||||||
outputCh <- []byte(errStr)
|
|
||||||
}
|
|
||||||
}()
|
}()
|
||||||
go func() {
|
go func() {
|
||||||
defer outputWg.Done()
|
defer outputWg.Done()
|
||||||
|
Loading…
Reference in New Issue
Block a user