Lines Matching refs:proc
336 proc = subprocess.Popen(
338 (out, err) = proc.communicate()
344 def _assert_subprocess_running(proc): argument
353 ret = proc.poll()
355 out, err = proc.communicate()
357 " stdout: %s" % (proc.pid, ret, err, out))
396 def kill_process_group(proc, signal_no=signal.SIGTERM): argument
409 pid = proc.pid
447 proc = subprocess.Popen(
454 proc = subprocess.Popen(
463 _assert_subprocess_running(proc)
464 return proc
467 def stop_standing_subprocess(proc, signal_no=signal.SIGTERM): argument
477 logging.debug("Stop standing subprocess %d", proc.pid)
478 _assert_subprocess_running(proc)
479 kill_process_group(proc, signal_no)
482 def wait_for_standing_subprocess(proc, timeout=None): argument
502 proc.wait(timeout)