Skip to content

Commit 8c4ffe5

Browse files
committed
rm initial resize
1 parent 2749726 commit 8c4ffe5

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

cmd/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.1.0
1+
v2.1.1

internal/shell/server.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"os"
1010
"os/exec"
1111
"os/signal"
12-
"syscall"
1312
"time"
1413

1514
"github.com/creack/pty"
@@ -57,24 +56,6 @@ func Serve(shell string, port int) error {
5756
}
5857
defer proc.Close()
5958

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-
7859
log.Printf("serving a new %s process on localhost:%d\n", shell, port)
7960

8061
conn, err := l.Accept()

0 commit comments

Comments
 (0)