Coverage for mfutil/cli_tools/recursive_kill.py: 0%
11 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-11-13 15:33 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-11-13 15:33 +0000
1from __future__ import print_function
2import argparse
3from mfutil import kill_process_and_children
5DESCRIPTION = "recursively kill (SIGKILL) a whole process tree"
8def main():
9 parser = argparse.ArgumentParser(description=DESCRIPTION)
10 parser.add_argument('pid', type=int,
11 help='root process pid (to kill)')
12 args = parser.parse_args()
13 kill_process_and_children(args.pid)
16if __name__ == '__main__':
17 main()