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

Function KillProcessWithID

tools/test.py:673–677  ·  view source on GitHub ↗
(pid, signal_to_send=signal.SIGTERM)

Source from the content-addressed store, hash-verified

671
672
673def KillProcessWithID(pid, signal_to_send=signal.SIGTERM):
674 if utils.IsWindows():
675 os.popen('taskkill /T /F /PID %d' % pid)
676 else:
677 os.kill(pid, signal_to_send)
678
679
680MAX_SLEEP_TIME = 0.1

Callers 1

KillTimedOutProcessFunction · 0.85

Calls 1

killMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…