> -1 about the PR solution to suppress ProcessLookupError in case the process is gone.
Did someone propose a pull request to fix this issue by ignoring ProcessLookupError?
> In psutil I solved the “pid reused problem” by using process creation time to identify a process uniquely (on start).
Well, that requires to write platform specific code.
I would prefer to only use platform specific code when the platform provides something like pidfd: I understand that Linux, FreeBSD, OpenBSD, NetBSD, and Illumos are concerned. I mean reuse an exisiting solution, rather than writing our own "workaround" (solution?). |