Open CryZe opened 1 month ago
Interesting: I was thinking about adding a new remove_dead_processes
boolean field in ProcessProcessKind
or as new parameter. Not clear yet. I suppose it would fix your case?
Yeah absolutely, as long as it doesn't wastefully have to scan the entire process list or so.
Sadly it kinda still needs to iterate processes or PIDs depending on the platform.
Can it not reuse the information it got from just refreshing the single process?
Just refreshing one process, depending on the platform, can require to go through processes/PIDs list given by the system.
I guess that's fine, as long as it can directly use that information and not query it a second time, like I do currently.
I'm attaching to specific individual processes and want to know when they are closed, so I use
to check for that situation. Unfortunately as stated by the documentation, this does not remove it from the entire list of processes. This means I need to run
inside to ensure it gets removed. This is very wasteful. I'd appreciate some sort of way for me to either manually remove it from the list or some argument I can pass / config I can set, so it gets removed properly.
Though arguably the entire default seems questionable to me too.