proxygen
folly::Subprocess::Pipe Struct Reference
Inheritance diagram for folly::Subprocess::Pipe:

Public Member Functions

bool operator< (const Pipe &other) const
 
bool operator== (const Pipe &other) const
 

Public Attributes

folly::File pipe
 
int childFd = -1
 
int direction = PIPE_IN
 
bool enabled = true
 

Detailed Description

Represents a pipe between this process, and the child process (or its descendant). To interact with these pipes, you can use communicate(), or use parentFd() and related methods, or separate them from the Subprocess instance entirely via takeOwnershipOfPipes().

Definition at line 950 of file Subprocess.h.

Member Function Documentation

bool folly::Subprocess::Pipe::operator< ( const Pipe other) const
inline

Definition at line 956 of file Subprocess.h.

References childFd.

956  {
957  return childFd < other.childFd;
958  }
bool folly::Subprocess::Pipe::operator== ( const Pipe other) const
inline

Definition at line 959 of file Subprocess.h.

References childFd.

959  {
960  return childFd == other.childFd;
961  }

Member Data Documentation

int folly::Subprocess::Pipe::childFd = -1

Definition at line 952 of file Subprocess.h.

Referenced by operator<(), operator==(), and folly::Subprocess::spawnInternal().

int folly::Subprocess::Pipe::direction = PIPE_IN

Definition at line 953 of file Subprocess.h.

Referenced by folly::Subprocess::spawnInternal().

bool folly::Subprocess::Pipe::enabled = true

Definition at line 954 of file Subprocess.h.

folly::File folly::Subprocess::Pipe::pipe

Definition at line 951 of file Subprocess.h.

Referenced by folly::Subprocess::spawnInternal().


The documentation for this struct was generated from the following file: