summaryrefslogtreecommitdiffstats
path: root/grapher/StapParser.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'grapher/StapParser.hxx')
-rw-r--r--grapher/StapParser.hxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/grapher/StapParser.hxx b/grapher/StapParser.hxx
index cfb807a8..24e84fc9 100644
--- a/grapher/StapParser.hxx
+++ b/grapher/StapParser.hxx
@@ -37,10 +37,13 @@ namespace systemtap
int _errFd;
int _inFd;
unsigned char _lineEndChar;
+ bool _catchHUP;
std::tr1::shared_ptr<StapProcess> _process;
+ sigc::connection _ioConnection;
+ sigc::connection _errIoConnection;
public:
StapParser()
- : _errFd(-1), _inFd(-1), _lineEndChar('\n')
+ : _errFd(-1), _inFd(-1), _lineEndChar('\n'), _catchHUP(false)
{
}
void parseData(std::tr1::shared_ptr<GraphDataBase> gdata,
@@ -63,7 +66,13 @@ namespace systemtap
{
_process = process;
}
+ void initIo(int inFd, int errFd, bool catchHUP);
};
sigc::signal<void, pid_t>& childDiedSignal();
+
+ typedef std::vector<std::tr1::shared_ptr<StapParser> > ParserList;
+ extern ParserList parsers;
+
+ sigc::signal<void>& parserListChangedSignal();
}