Close pty

This commit is contained in:
Iwasaki Yudai 2015-08-21 19:08:51 +09:00
parent 23ca3c8d13
commit beda1d7ab7

View File

@ -48,6 +48,7 @@ func (context *clientContext) goHandleClient() {
go func() {
<-exit
context.pty.Close()
context.command.Wait()
context.connection.Close()
log.Printf("Connection closed: %s", context.request.RemoteAddr)