Skip to content

Commit

Permalink
add log for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
skiffer-git committed Apr 28, 2024
1 parent d8b7b17 commit b974626
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mageutil/sys.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,15 @@ func BatchKillExistBinaries(binaryPaths []string) {
}
lowerExePath := strings.ToLower(exePath)
exePathMap[lowerExePath] = append(exePathMap[lowerExePath], p)
fmt.Println("exePathMap ", "lowerExePath ", lowerExePath, " pid: ", p.Pid)
}

// Check each binary path against the map
for _, binaryPath := range binaryPaths {
lowerBinaryPath := strings.ToLower(binaryPath)
for exePath, procs := range exePathMap {
if strings.Contains(exePath, lowerBinaryPath) {
fmt.Println("lowerBinaryPath ", lowerBinaryPath, "exePath ", exePath)
for _, p := range procs {
cmdline, err := p.Cmdline()
if err != nil {
Expand Down

0 comments on commit b974626

Please sign in to comment.