Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[tesh] kill process -> kill whole process group
authorMillian Poquet <millian.poquet@inria.fr>
Mon, 19 Feb 2018 10:52:25 +0000 (11:52 +0100)
committerMillian Poquet <millian.poquet@inria.fr>
Mon, 19 Feb 2018 10:59:54 +0000 (11:59 +0100)
commitd6d20e218cd468880d8d8ae1046a291926597b18
tree8d8352cee629b6d72a24f4ba84d76a450323f2f7
parent1951438a15fb128ca36142cb058e23683b42f9c3
[tesh] kill process -> kill whole process group

If the command launched by tesh executes some subprocesses
(which are not cleaned by the root process on SIGKILL)
the previous code let such subprocesses in a running state.

Now the root process is launched into a new session (man setsid)
and the whole session is killed by tesh. All subprocess should be killed
as long as the session is not changed in the process tree.

Traversing the process tree could also be done, but it may require
additional dependencies (i.e., psutil).
tools/tesh/tesh.py