Home
last modified time | relevance | path

Searched refs:Subprocess (Results 1 – 13 of 13) sorted by relevance

/device/google/cuttlefish/common/libs/utils/
Dsubprocess.h55 class Subprocess; variable
56 using SubprocessStopper = std::function<StopperResult(Subprocess*)>;
58 StopperResult KillSubprocess(Subprocess* subprocess);
66 class Subprocess {
74 Subprocess(pid_t pid, SubprocessStopper stopper = KillSubprocess)
78 Subprocess(Subprocess&&);
79 ~Subprocess() = default;
80 Subprocess& operator=(Subprocess&&);
100 Subprocess(const Subprocess&) = delete;
101 Subprocess& operator=(const Subprocess&) = delete;
[all …]
Dsubprocess.cpp60 const std::map<Subprocess::StdIOChannel, int>& redirects, in validate_redirects()
79 void do_redirects(const std::map<Subprocess::StdIOChannel, int>& redirects) { in do_redirects()
174 Subprocess::Subprocess(Subprocess&& subprocess) in Subprocess() function in cuttlefish::Subprocess
183 Subprocess& Subprocess::operator=(Subprocess&& other) { in operator =()
193 int Subprocess::Wait() { in Wait()
225 int Subprocess::Wait(siginfo_t* infop, int options) { in Wait()
263 Result<void> Subprocess::SendSignal(const int signal) { in SendSignal()
268 Result<void> Subprocess::SendSignalToGroup(const int signal) { in SendSignalToGroup()
273 StopperResult KillSubprocess(Subprocess* subprocess) { in KillSubprocess()
297 return KillSubprocessFallback([nice](Subprocess*) { return nice(); }); in KillSubprocessFallback() argument
[all …]
Darchive.cpp94 bsdtar_cmd.RedirectStdIO(Subprocess::StdIOChannel::kStdOut, in ExtractFiles()
95 Subprocess::StdIOChannel::kStdErr); in ExtractFiles()
Dfiles.cpp552 du_cmd.RedirectStdIO(Subprocess::StdIOChannel::kStdOut, write_fd); in GetDiskUsage()
/device/google/cuttlefish/host/commands/start/
Dmain.cc122 cuttlefish::Subprocess StartAssembler(cuttlefish::SharedFD assembler_stdin, in StartAssembler()
130 assemble_cmd.RedirectStdIO(cuttlefish::Subprocess::StdIOChannel::kStdIn, assembler_stdin); in StartAssembler()
132 assemble_cmd.RedirectStdIO(cuttlefish::Subprocess::StdIOChannel::kStdOut, assembler_stdout); in StartAssembler()
136 cuttlefish::Subprocess StartRunner(cuttlefish::SharedFD runner_stdin, in StartRunner()
142 run_cmd.RedirectStdIO(cuttlefish::Subprocess::StdIOChannel::kStdIn, runner_stdin); in StartRunner()
467 std::vector<cuttlefish::Subprocess> runners; in main()
Dflag_forwarder.cc60 const std::string& Subprocess() const { return subprocess_; } in Subprocess() function in SubprocessFlag
372 if (flag->Subprocess() == subprocess) { in ArgvForSubprocess()
/device/google/cuttlefish/host/libs/vm_manager/
Dcrosvm_manager.cpp231 gpu_device_logs_cmd.SetStopper(KillSubprocessFallback([](Subprocess* proc) { in BuildVhostUserGpu()
342 gpu_device_cmd.Cmd().RedirectStdIO(Subprocess::StdIOChannel::kStdOut, in BuildVhostUserGpu()
344 gpu_device_cmd.Cmd().RedirectStdIO(Subprocess::StdIOChannel::kStdErr, in BuildVhostUserGpu()
702 crosvm_log_tee_cmd.SetStopper(KillSubprocessFallback([](Subprocess* proc) { in StartCommands()
888 gpu_capture_command.RedirectStdIO(Subprocess::StdIOChannel::kStdOut, in StartCommands()
890 gpu_capture_command.RedirectStdIO(Subprocess::StdIOChannel::kStdErr, in StartCommands()
896 crosvm_cmd.Cmd().RedirectStdIO(Subprocess::StdIOChannel::kStdOut, in StartCommands()
898 crosvm_cmd.Cmd().RedirectStdIO(Subprocess::StdIOChannel::kStdErr, in StartCommands()
/device/google/cuttlefish/host/commands/run_cvd/launch/
Dlog_tee_creator.cpp29 cmd.RedirectStdIO(Subprocess::StdIOChannel::kStdOut, logs); in CreateLogTee()
30 cmd.RedirectStdIO(Subprocess::StdIOChannel::kStdErr, logs); in CreateLogTee()
/device/google/cuttlefish/host/commands/assemble_cvd/
Dboot_image_utils.cc192 unpack_cmd.RedirectStdIO(Subprocess::StdIOChannel::kStdOut, output_file); in UnpackBootImage()
224 unpack_cmd.RedirectStdIO(Subprocess::StdIOChannel::kStdOut, output_file); in UnpackVendorBootImageIfNotUnpacked()
242 concat_cmd.RedirectStdIO(Subprocess::StdIOChannel::kStdOut, concat_file); in UnpackVendorBootImageIfNotUnpacked()
Dflags.cc628 ikconfig_cmd.RedirectStdIO(Subprocess::StdIOChannel::kStdOut, ikconfig_fd); in ReadGuestConfig()
/device/google/cuttlefish/host/libs/process_monitor/
Dprocess_monitor.cc117 it->proc.reset(new Subprocess(it->cmd->Start(std::move(options)))); in MonitorLoop()
255 new Subprocess(monitored.cmd->Start(std::move(options)))); in StartSubprocesses()
Dprocess_monitor.h36 std::unique_ptr<Subprocess> proc;
/device/google/cuttlefish/host/libs/avb/
Davb.cpp93 command.RedirectStdIO(Subprocess::StdIOChannel::kStdOut, output_file); in GenerateInfoImage()