Debian – How to kill a subprocess and all of its descendants on timeout in Python?
I have a Python program which launches subprocesses like this: subprocess.run(cmdline, shell=True) A subprocess can be anything that can be executed from a shell: Python programs, binaries or scripts in any other language. cmdline is something like export PYTHONPATH=$PYTHONPATH:/path/to/more/libs; command…