An abstraction to message logging facility.
A wrapper class to provide AutoPtr with reference semantics.
pid_t m_child_pid
Supbrocess' PID.
pid_t pid() const
Get subprocess' PID.
int fd() const
Get pipe's file descriptor.
FILE * fp() const
Get pipe's standard I/O file pointer.
Pipe()
A no-op constructor.
FILE * open(const string &cmd_, const string &type_)
Starts a subshell and feed it the string cmd_ to be executed.
FILE * m_fp
A standard I/O stream descriptor.
int kill()
Kill subprocess with SIGTERM.
Pipe & operator=(const Pipe &)
~Pipe()
Destructor calls close () first in an attempt to close opened pipe.
int close()
Close the pipe.