MCPcopy Create free account
hub / github.com/UTD-FAST-Lab/RevBugBench / _start_kill_thread

Function _start_kill_thread

triage/utils/new_process.py:55–62  ·  view source on GitHub ↗

Starts a thread to start killing |process| if it doesn't die before |timeout| seconds have elapsed.

(process: WrappedPopen, kill_children: bool,
                       timeout: int)

Source from the content-addressed store, hash-verified

53
54
55def _start_kill_thread(process: WrappedPopen, kill_children: bool,
56 timeout: int) -> threading.Timer:
57 """Starts a thread to start killing |process| if it doesn't die before
58 |timeout| seconds have elapsed."""
59 # TODO(metzman): Figure out if we should kill descendant processes.
60 timer = threading.Timer(timeout, _end_process, [process, kill_children])
61 timer.start()
62 return timer
63
64
65ProcessResult = collections.namedtuple('ProcessResult',

Callers 1

executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected