17 #ifndef __MESOS_SLAVE_CONTAINERIZER_HPP__ 18 #define __MESOS_SLAVE_CONTAINERIZER_HPP__ 28 #include <mesos/slave/containerizer.pb.h> 92 FDWrapper(
int_fd _fd,
bool _closeOnDestruction)
93 : fd(_fd), closeOnDestruction(_closeOnDestruction) {}
97 if (closeOnDestruction) {
102 operator int_fd()
const {
return fd; }
105 FDWrapper(
const FDWrapper& fd) =
delete;
108 bool closeOnDestruction;
113 fd_(
new FDWrapper(_fd, closeOnDestruction)),
116 IO(
Type _type,
const std::string& _path)
147 #endif // __MESOS_SLAVE_CONTAINERIZER_HPP__
Describes how the containerizer redirects I/O for stdin/stdout/stderr of a container.
Definition: containerizer.hpp:52
static IO PATH(const std::string &path)
An abstraction around the IO classes used to redirect stdin/stdout/stderr to/from a container by the ...
Definition: containerizer.hpp:37
static IO FD(int_fd fd, bool closeOnDestruction=true)
Definition: containerizer.hpp:66
#define STDERR_FILENO
Definition: windows.hpp:155
IO in
How to redirect the stdin of the executable.
Definition: containerizer.hpp:130
static IO FD(int_fd fd, IO::FDType type=IO::DUPLICATED)
#define STDOUT_FILENO
Definition: windows.hpp:154
Describes how the I/O is redirected for stdin/stdout/stderr.
Definition: subprocess.hpp:62
#define STDIN_FILENO
Definition: windows.hpp:153
IO err
Similar to out, except this describes how to redirect stderr.
Definition: containerizer.hpp:141
#define UNREACHABLE()
Definition: unreachable.hpp:22
static IO PATH(const std::string &path)
Definition: containerizer.hpp:61
int int_fd
Definition: int_fd.hpp:35
Type
Definition: containerizer.hpp:55
IO out
How to redirect the stdout of the executable.
Definition: containerizer.hpp:136