defer ptmx.Close()

This commit is contained in:
Nikolay Edigaryev 2025-05-19 16:18:12 +02:00
parent 4d3200ce6b
commit adb4a099c8
1 changed files with 1 additions and 0 deletions

View File

@ -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