MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Kill

Method Kill

tensorflow/core/platform/posix/subprocess.cc:321–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321bool SubProcess::Kill(int signal) {
322 proc_mu_.lock();
323 bool running = running_;
324 pid_t pid = pid_;
325 proc_mu_.unlock();
326
327 bool ret = false;
328 if (running && (pid > 1)) {
329 ret = (kill(pid, signal) == 0);
330 }
331 return ret;
332}
333
334int SubProcess::Communicate(const string* stdin_input, string* stdout_output,
335 string* stderr_output) {

Callers 3

~GRPCClientTestBaseMethod · 0.80
TEST_FFunction · 0.80
~TestClusterMethod · 0.80

Calls 2

lockMethod · 0.45
unlockMethod · 0.45

Tested by 3

~GRPCClientTestBaseMethod · 0.64
TEST_FFunction · 0.64
~TestClusterMethod · 0.64