diff --git a/internal/rpc/exec.go b/internal/rpc/exec.go index 6dc47a0..4e3430e 100644 --- a/internal/rpc/exec.go +++ b/internal/rpc/exec.go @@ -53,6 +53,7 @@ func (rpc *RPC) Exec(stream grpc.BidiStreamingServer[ExecRequest, ExecResponse]) Rows: uint16(firstExecRequestCommand.Command.GetTerminalSize().GetRows()), Cols: uint16(firstExecRequestCommand.Command.GetTerminalSize().GetCols()), }) + defer ptmx.Close() if firstExecRequestCommand.Command.Interactive { stdin = ptmx