Message368462
| Author | Alexander Overvoorde |
|---|---|
| Recipients | Alexander Overvoorde, FFY00 |
| Date | 2020-05-08.20:53:32 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1588971212.18.0.266090507183.issue40550@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
I'm not sure that it is expected since Popen.send_signal does contain the following check:
```
def send_signal(self, sig):
"""Send a signal to the process."""
# Skip signalling a process that we know has already died.
if self.returncode is None:
os.kill(self.pid, sig)
```
Additionally, the following program does not raise a ProcessLookupError despite the program already having exited:
```
import subprocess
import time
proc = subprocess.Popen(["sh", "-c", "exit 0"])
time.sleep(5)
proc.terminate()
``` |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2020-05-08 20:53:32 | Alexander Overvoorde | set | recipients: + Alexander Overvoorde, FFY00 |
| 2020-05-08 20:53:32 | Alexander Overvoorde | set | messageid: <1588971212.18.0.266090507183.issue40550@roundup.psfhosted.org> |
| 2020-05-08 20:53:32 | Alexander Overvoorde | link | issue40550 messages |
| 2020-05-08 20:53:32 | Alexander Overvoorde | create | |