From 339e1ece8eaffa9beaaf53c1a90ff5c9a66c96ed Mon Sep 17 00:00:00 2001 From: Benny Daon Date: Wed, 22 May 2024 11:37:28 +0300 Subject: [PATCH] Adding a todo comment, #106 --- peers/pane.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/peers/pane.go b/peers/pane.go index 17f4d6f..83295cc 100644 --- a/peers/pane.go +++ b/peers/pane.go @@ -97,7 +97,9 @@ func NewPane(peer *Peer, ws *pty.Winsize, parent int) (*Pane, error) { return nil, fmt.Errorf( "Got a pane request with an illegal parrent pane id: %d", parent) } - parent = parentPane.C.Process.Pid + //TODO: handle a crash here, when there's a parent pane but no process yet + // https://github.com/tuzig/webexec/issues/106 + -parent = parentPane.C.Process.Pid } if ws != nil { vt = vt10x.New(vt10x.WithSize(int(ws.Cols), int(ws.Rows)))