Lines Matching refs:proc
166 def _kill_child_process(proc, int_timeout, kill_timeout, cmd, original_handler, argument
183 if proc.returncode is None and proc.pid is not None:
185 while proc.poll() is None and int_timeout >= 0:
189 proc.terminate()
190 while proc.poll() is None and kill_timeout >= 0:
194 if proc.poll() is None:
196 proc.kill()
202 proc.wait()
388 proc = None
394 proc = _Popen(cmd, cwd=cwd, stdin=stdin, stdout=stdout,
404 _kill_child_process, proc, int_timeout, kill_timeout, cmd,
409 handler = functools.partial(_kill_child_process, proc, int_timeout,
414 (cmd_result.output, cmd_result.error) = proc.communicate(input)
434 cmd_result.returncode = proc.returncode
436 if not error_code_ok and proc.returncode:
452 if proc is not None:
454 _kill_child_process(proc, int_timeout, kill_timeout, cmd, None,