Jan-21-2021, 05:03 PM
(This post was last modified: Jan-21-2021, 05:03 PM by Gribouillis.)
As a cross-platform way to kill a process, you can use the psutil module instead of calling the OS directly. Psutils gives you robust ways to find the process and kill it.
Also note that if a script starts another script through the multiprocessing module, it has a pointer to the child process through which it can kill the process.
Also note that if a script starts another script through the multiprocessing module, it has a pointer to the child process through which it can kill the process.