Skip to content

Commit

Permalink
[supervisor] thread safe listening to terminals
Browse files Browse the repository at this point in the history
  • Loading branch information
akosyakov committed Apr 9, 2021
1 parent c5a34bf commit 8b9ce66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/supervisor/pkg/terminal/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ func (srv *MuxTerminalService) Listen(req *api.ListenTerminalRequest, resp api.T
errchan := make(chan error, 1)
messages := make(chan *api.ListenTerminalResponse, 1)
go func() {
buf := make([]byte, 4096)
for {
buf := make([]byte, 4096)
n, err := stdout.Read(buf)
if err == io.EOF {
break
Expand Down

0 comments on commit 8b9ce66

Please sign in to comment.