Lines Matching refs:proc
79 brillo::Process* proc) { in LaunchProcess() argument
81 proc->AddArg(arg); in LaunchProcess()
82 proc->SetSearchPath((flags & Subprocess::kSearchPath) != 0); in LaunchProcess()
93 proc->RedirectUsingPipe(fd, false); in LaunchProcess()
95 proc->SetCloseUnusedFileDescriptors(true); in LaunchProcess()
96 proc->RedirectUsingPipe(STDOUT_FILENO, false); in LaunchProcess()
97 proc->SetPreExecCallback(base::Bind(&SetupChild, env, flags)); in LaunchProcess()
100 return proc->Start(); in LaunchProcess()
166 record->proc.Release(); in ChildExitedCallback()
167 record->proc.Reset(0); in ChildExitedCallback()
183 if (!LaunchProcess(cmd, flags, output_pipes, &record->proc)) { in ExecFlags()
188 pid_t pid = record->proc.pid(); in ExecFlags()
194 record->stdout_fd = record->proc.GetPipe(STDOUT_FILENO); in ExecFlags()
222 pid_record->second->proc.Release(); in KillExec()
229 return pid_record->second->proc.GetPipe(fd); in GetPipeFd()
246 brillo::ProcessImpl proc; in SynchronousExecFlags() local
247 if (!LaunchProcess(cmd, flags, {STDERR_FILENO}, &proc)) { in SynchronousExecFlags()
260 int stdout_fd = proc.GetPipe(STDOUT_FILENO); in SynchronousExecFlags()
261 int stderr_fd = proc.GetPipe(STDERR_FILENO); in SynchronousExecFlags()
290 int proc_return_code = proc.Wait(); in SynchronousExecFlags()