I'm using sysinfo to detect any other running instance of my binary ("piglet"), across MacOS, Windows, Linux and Pi OS.
On Mac so far it has worked a treat, now I'm debugging it on Linux (PiOS) using VSCode.
I have no prior running instances of this binary (just rebooted also), and when I call processes_by_exact_name() to detect any possible other instances, it returns 4 to me.
Is it possible it's returning one for each thread?
Also, the "pid" reported for each one seems to match the "tid" reported by VSCode...
This is a tokio async app, and VSCode shows 4 threads with different task Ids, all with the same name:
I'm using sysinfo to detect any other running instance of my binary ("piglet"), across MacOS, Windows, Linux and Pi OS.
On Mac so far it has worked a treat, now I'm debugging it on Linux (PiOS) using VSCode.
I have no prior running instances of this binary (just rebooted also), and when I call processes_by_exact_name() to detect any possible other instances, it returns 4 to me.
Is it possible it's returning one for each thread? Also, the "pid" reported for each one seems to match the "tid" reported by VSCode...
This is a tokio async app, and VSCode shows 4 threads with different task Ids, all with the same name: