MCPcopy Index your code
hub / github.com/nodejs/node / kill_processes_linux

Function kill_processes_linux

deps/v8/tools/testrunner/testproc/util.py:42–54  ·  view source on GitHub ↗

Kill stray processes on the system that started in the same out directory. All swarming tasks share the same out directory location.

()

Source from the content-addressed store, hash-verified

40
41
42def kill_processes_linux():
43 """Kill stray processes on the system that started in the same out directory.
44
45 All swarming tasks share the same out directory location.
46 """
47 if platform.system() != 'Linux':
48 return
49 for pid, cmd in list_processes_linux():
50 try:
51 logging.warning('Attempting to kill %d - %s', pid, cmd)
52 os.kill(pid, signal.SIGKILL)
53 except:
54 logging.exception('Failed to kill process')
55
56
57def base_test_record(test, result, run):

Callers

nothing calls this directly

Calls 3

list_processes_linuxFunction · 0.85
killMethod · 0.80
exceptionMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…