Skip to content

Commit

Permalink
geneos ps does not show running AC2 instance(s)
Browse files Browse the repository at this point in the history
might fix #139
  • Loading branch information
pgalbavy-itrs committed Jun 22, 2023
1 parent 3f02574 commit 888cbae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/geneos/internal/instance/ac2/ac2_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ func getPID(i interface{}) (pid int, err error) {
// process may disappear by this point, ignore error
continue
}
args := bytes.Split(data, []byte("\000"))
execfile := filepath.Base(string(args[0]))
bin := bytes.TrimRight(data, "\000")
execfile := filepath.Base(string(bin))
if execfile == c.Config().GetString("program") {
return
}
Expand Down

0 comments on commit 888cbae

Please sign in to comment.