Skip to content

Commit

Permalink
wip: more mac fixes for tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Oct 3, 2024
1 parent f612707 commit 1c3ac87
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions cmd/sst/mosaic/multiplexer/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (

"github.com/gdamore/tcell/v2"
tcellterm "github.com/sst/ion/cmd/sst/mosaic/multiplexer/tcell-term"
"github.com/sst/ion/internal/util"
)

type vterm struct {
Expand Down Expand Up @@ -58,7 +57,6 @@ func (p *process) start() error {
p.cmd.Dir = p.dir
}
p.vt.Clear()
util.SetProcessGroupID(p.cmd)
err := p.vt.Start(p.cmd)
if err != nil {
return err
Expand Down
5 changes: 1 addition & 4 deletions cmd/sst/mosaic/multiplexer/tcell-term/vt.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/creack/pty"
"github.com/gdamore/tcell/v2"
"github.com/mattn/go-runewidth"
"github.com/sst/ion/internal/util"
)

type (
Expand Down Expand Up @@ -463,9 +462,7 @@ func (vt *VT) Close() {
defer vt.mu.Unlock()
if vt.cmd != nil && vt.cmd.Process != nil {
slog.Info("killing process", "pid", vt.cmd.Process.Pid)
util.TerminateProcess(vt.cmd.Process.Pid)
vt.cmd.Process.Kill()
vt.cmd.Wait()
vt.cmd.Process.Signal(syscall.SIGTERM)
slog.Info("process killed")
}
vt.pty.Close()
Expand Down

0 comments on commit 1c3ac87

Please sign in to comment.