Message355856
-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”)?). |
|
Date |
User |
Action |
Args |
2019-11-02 01:50:25 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, vstinner |
2019-11-02 01:50:25 | giampaolo.rodola | set | messageid: <1572659425.26.0.273053171266.issue38630@roundup.psfhosted.org> |
2019-11-02 01:50:25 | giampaolo.rodola | link | issue38630 messages |
2019-11-02 01:50:25 | giampaolo.rodola | create | |
|