pylab_ml.common.common.kill_proc_tree
- kill_proc_tree(pid=None, instance=None, including_parent=False)[source]
Kill a process and all its children.
- Parameters:
pid (The process ID of the parent process to kill. If None, it will be determined from the instance.)
instance (An optional instance that has a pid attribute. If provided, its pid will be used if pid is None.)
including_parent (A boolean indicating whether to also kill the parent process. Default is False.)
- Return type:
None.