Experimental dead conn process kill logic

This commit is contained in:
Russ Magee 2023-11-06 23:17:13 -08:00
parent 908a1bcda2
commit 871f9a200c
2 changed files with 11 additions and 1 deletions

View file

@ -346,6 +346,9 @@ func runShellAs(who, hname, ttype, cmd string, interactive bool, //nolint:funlen
defer func() { goutmp.Unput_utmp(utmpx) }()
goutmp.Put_lastlog_entry("xs", who, pts, hname)
conn.Pproc = c.Process.Pid
//fmt.Printf("[process %d started]\n", c.Process.Pid)
log.Printf("[%s]\n", cmd)
if err != nil {
log.Printf("Command finished with error: %v", err)