mirror of https://github.com/tstack/lnav
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
427 B
C++
31 lines
427 B
C++
15 years ago
|
|
||
|
#ifndef __piper_proc_hh
|
||
|
#define __piper_proc_hh
|
||
|
|
||
|
#include <string>
|
||
|
#include <sys/types.h>
|
||
|
|
||
|
class piper_proc {
|
||
|
public:
|
||
|
class error
|
||
|
: public std::exception {
|
||
|
public:
|
||
|
error(int err)
|
||
|
: e_err(err) { };
|
||
|
|
||
|
int e_err;
|
||
|
};
|
||
|
|
||
|
piper_proc(int pipefd);
|
||
|
virtual ~piper_proc();
|
||
|
|
||
|
int get_fd() const { return this->pp_fd; };
|
||
|
|
||
|
private:
|
||
|
std::string pp_filename;
|
||
|
int pp_fd;
|
||
|
pid_t pp_child;
|
||
|
};
|
||
|
|
||
|
#endif
|