On Mar 3 20:36, Takashi Yano wrote: > On Sun, 03 Mar 2024 11:39:40 +0100 > ASSI wrote: > > Takashi Yano writes: > > >> After noticing that we enumerate all the processes (which is an expensive > > >> operation) just to skip all of the non-Cygwin ones anyway, I wonder if it > > >> wouldn't be smarter to go through the internal list of cygpids and take > > >> it > > >> from there, skipping the `SystemProcessInformation` calls altogether. > > > > > > Yeah, that makes sens. I'll submit v2 patch. > > > > Keep in mind that there may be different independent Cygwin > > installations running on the same nachine. > > That's possible. But how can we know that is a process in another > installaion of cygwin? > > If it is difficult, I think it is not so nonsense to treat it as > same as non-cygwin process.
Right you are. We always said that independent Cygwin installations are supposed to *stay* independent. Keep in mind that they don't share the same shared objects in the native NT namespace and they don't know of each other. It's not only the process table but also in-use FIFO stuff, pty info, etc. Corinna