Giampaolo Rodola' <g.rod...@gmail.com> added the comment:

-1 about the PR solution to suppress ProcessLookupError in case the process is 
gone. In psutil I solved the “pid reused problem” by using process creation 
time to identify a process uniquely (on start). 
A decorator can be used to protect the sensibile methods interacting with the 
PID/handle (communicate(), send_signal(), terminate(), kill()) and raise an 
exception (maybe ProcessLooKupError(“PID has been reused”)?).

----------
nosy: +giampaolo.rodola

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38630>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to