From e6b97bf2c76cf4c021d8f1aa8f2520ea5fd9bb06 Mon Sep 17 00:00:00 2001 From: Simon Let Date: Thu, 23 May 2019 15:37:31 +0200 Subject: [PATCH] minor changes --- collect/resh-collect.go | 2 +- common/resh-common.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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"`