From b1e2622477661ce775385a8578bbf7eccecf5d86 Mon Sep 17 00:00:00 2001 From: Christos Kalkanis Date: Thu, 23 Jan 2025 08:51:46 -0500 Subject: [PATCH] Renamed pidExited to pidExitProcessed --- processmanager/processinfo.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/processmanager/processinfo.go b/processmanager/processinfo.go index 3a3c38dd..41b087fa 100644 --- a/processmanager/processinfo.go +++ b/processmanager/processinfo.go @@ -520,13 +520,13 @@ func (pm *ProcessManager) ProcessPIDExit(pid libpf.PID) { pm.mu.Lock() defer pm.mu.Unlock() - pidExited := false + pidExitProcessed := false info, pidExists := pm.pidToProcessInfo[pid] if pidExists || (pm.interpreterTracerEnabled && len(pm.interpreters[pid]) > 0) { // ProcessPIDExit may be called multiple times in short succession // for the same PID, don't update exitKTime if we've previously recorded it. - if _, pidExited = pm.exitEvents[pid]; !pidExited { + if _, pidExitProcessed = pm.exitEvents[pid]; !pidExitProcessed { pm.exitEvents[pid] = exitKTime } } @@ -534,7 +534,7 @@ func (pm *ProcessManager) ProcessPIDExit(pid libpf.PID) { log.Debugf("Skip process exit handling for unknown PID %d", pid) return } - if pidExited { + if pidExitProcessed { log.Debugf("Skip duplicate process exit handling for PID %d", pid) return }