mirror of
https://github.com/yudai/gotty.git
synced 2026-04-18 01:59:04 +02:00
Close pty
This commit is contained in:
parent
23ca3c8d13
commit
beda1d7ab7
1 changed files with 1 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ func (context *clientContext) goHandleClient() {
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
<-exit
|
<-exit
|
||||||
|
context.pty.Close()
|
||||||
context.command.Wait()
|
context.command.Wait()
|
||||||
context.connection.Close()
|
context.connection.Close()
|
||||||
log.Printf("Connection closed: %s", context.request.RemoteAddr)
|
log.Printf("Connection closed: %s", context.request.RemoteAddr)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue