diff --git a/collect/resh-collect.go b/collect/resh-collect.go index 24ce8f6..07cd248 100644 --- a/collect/resh-collect.go +++ b/collect/resh-collect.go @@ -50,7 +50,7 @@ func main() { term := flag.String("term", "", "$TERM") // non-posix - pid := flag.Int("pid", -1, "$PID") + pid := flag.Int("pid", -1, "$$") sessionPid := flag.Int("sessionPid", -1, "$$ at session start") shlvl := flag.Int("shlvl", -1, "$SHLVL") diff --git a/common/resh-common.go b/common/resh-common.go index 32d701f..70727fa 100644 --- a/common/resh-common.go +++ b/common/resh-common.go @@ -26,7 +26,6 @@ type Record struct { RealPwdAfter string `json:"realPwdAfter"` Pid int `json:"pid"` SessionPid int `json:"sessionPid"` - WindowId int `json:"windowId"` Host string `json:"host"` Hosttype string `json:"hosttype"` Ostype string `json:"ostype"`