mirror of
https://github.com/yudai/gotty.git
synced 2026-01-04 16:48:50 +01:00
Send EOT before exiting
The processes were left behind when clients closed their windows.
This commit is contained in:
parent
1c8b87df90
commit
2050775288
1 changed files with 1 additions and 0 deletions
|
|
@ -201,6 +201,7 @@ func (app *App) generateHandler() func(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
go func() {
|
||||
<-exit
|
||||
fio.Write([]byte{4})
|
||||
fio.Close()
|
||||
conn.Close()
|
||||
log.Printf("Connection closed: %s", r.RemoteAddr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue