Android-cuttlefish cvd tool
Classes | Namespaces | Typedefs | Enumerations | Functions
subprocess.h File Reference
#include <sys/types.h>
#include <sys/wait.h>
#include <atomic>
#include <functional>
#include "cuttlefish/result/result_type.h"
Include dependency graph for subprocess.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cuttlefish::Subprocess
 

Namespaces

namespace  cuttlefish
 

Typedefs

using cuttlefish::SubprocessStopper = std::function< StopperResult(Subprocess *)>
 

Enumerations

enum class  cuttlefish::StopperResult { cuttlefish::kFailure , cuttlefish::kCrash , cuttlefish::kSuccess }
 

Functions

StopperResult cuttlefish::KillSubprocess (Subprocess *subprocess)
 
SubprocessStopper cuttlefish::KillSubprocessFallback (std::function< StopperResult()> nice)
 
SubprocessStopper cuttlefish::KillSubprocessFallback (SubprocessStopper nice_stopper)