Fix PTY workdir and process group teardown

This commit is contained in:
2026-05-27 13:19:35 +01:00
parent da46340a82
commit b72a32bbc6
3 changed files with 93 additions and 2 deletions

View File

@@ -228,7 +228,7 @@ func (c *Child) startPTY(cols, rows uint16) (uint64, error) {
}
starting := StatusStarting
c.status.Store(&starting)
p, err := pkgpty.Start(c.Argv, c.Env, cols, rows)
p, err := pkgpty.Start(c.Argv, c.Env, c.WorkDir, cols, rows)
if err != nil {
em.Close()
errored := StatusErrored