With MSYS2 python, using Popen.kill() with a terminated PID raises an OSError
https://bugs.python.org/issue6973
Drop the Popen.kill() call, and use Popen.communicate(), that wait for process to terminate, to end the subprocess started to load the CPU.
With MSYS2 python, using Popen.kill() with a terminated PID raises an OSError https://bugs.python.org/issue6973 Drop the Popen.kill() call, and use Popen.communicate(), that wait for process to terminate, to end the subprocess started to load the CPU.