We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2749726 commit 8c4ffe5Copy full SHA for 8c4ffe5
cmd/version.txt
@@ -1 +1 @@
1
-v2.1.0
+v2.1.1
internal/shell/server.go
@@ -9,7 +9,6 @@ import (
9
"os"
10
"os/exec"
11
"os/signal"
12
- "syscall"
13
"time"
14
15
"github.com/creack/pty"
@@ -57,24 +56,6 @@ func Serve(shell string, port int) error {
57
56
}
58
defer proc.Close()
59
60
- ch := make(chan os.Signal, 1)
61
- signal.Notify(ch, syscall.SIGWINCH)
62
-
63
- go func() {
64
- for range ch {
65
- if err := pty.InheritSize(os.Stdin, proc); err != nil {
66
- log.Printf("error resizing: %s", err)
67
- }
68
69
- }()
70
71
- // initial resize
72
- ch <- syscall.SIGWINCH
73
- defer func() {
74
- signal.Stop(ch)
75
- close(ch)
76
77
78
log.Printf("serving a new %s process on localhost:%d\n", shell, port)
79
80
conn, err := l.Accept()
0 commit comments