Skip to content

Commit

Permalink
Fix issue with Listen mode where the retrieved process name of the PI…
Browse files Browse the repository at this point in the history
…D wasn't successfully added as a monitored process
  • Loading branch information
H4NM committed Feb 16, 2025
1 parent c26705b commit aaa6a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WhoYouCalling/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private static void MonitorRunningProcess(int pid)
{
s_trackedMainPid = pid;
s_mainExecutableProcessName = System.Diagnostics.Process.GetProcessById(s_trackedMainPid).ProcessName;
AddProcessToMonitor(pid: s_trackedMainPid);
AddProcessToMonitor(pid: s_trackedMainPid, processName: s_mainExecutableProcessName);
ConsoleOutput.Print($"Listening to PID {s_trackedMainPid}({s_mainExecutableProcessName})", PrintType.Info);
CatalogETWActivity(eventType: EventType.ProcessMonitor, processName: s_mainExecutableProcessName, processID: s_trackedMainPid);
}
Expand Down

0 comments on commit aaa6a2c

Please sign in to comment.