MCPcopy Create free account
hub / github.com/apache/kafka / sigterm_remote_process

Function sigterm_remote_process

system_test/utils/system_test_utils.py:223–234  ·  view source on GitHub ↗
(hostname, pidStack)

Source from the content-addressed store, hash-verified

221 return pidStack
222
223def sigterm_remote_process(hostname, pidStack):
224
225 while ( len(pidStack) > 0 ):
226 pid = pidStack.pop()
227 cmdStr = "ssh " + hostname + " 'kill -15 " + pid + "'"
228
229 try:
230 logger.debug("executing command [" + cmdStr + "]", extra=d)
231 sys_call_return_subproc(cmdStr)
232 except:
233 print "WARN - pid:",pid,"not found"
234 raise
235
236def sigkill_remote_process(hostname, pidStack):
237

Callers

nothing calls this directly

Calls 1

sys_call_return_subprocFunction · 0.85

Tested by

no test coverage detected