diff options
author | Tim Moore <timoore@redhat.com> | 2009-09-16 19:06:29 +0200 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2009-09-30 20:40:30 +0200 |
commit | aac88aab720d169bacc49702f18996a5929a7f5d (patch) | |
tree | 592585b2932c52f6ce4924db5ea4f492cf1e3bb4 /grapher/StapParser.hxx | |
parent | 239edc45bc2215485362eda09422e380f02ad0c1 (diff) | |
download | systemtap-steved-aac88aab720d169bacc49702f18996a5929a7f5d.tar.gz systemtap-steved-aac88aab720d169bacc49702f18996a5929a7f5d.tar.xz systemtap-steved-aac88aab720d169bacc49702f18996a5929a7f5d.zip |
grapher: Handle the death of the child stap process
* grapher/grapher.c (main): Set up signal and i/o handlers to detect death
of child.
* grapher/StapParser.cxx (errIoCallback): New method
Diffstat (limited to 'grapher/StapParser.hxx')
-rw-r--r-- | grapher/StapParser.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/grapher/StapParser.hxx b/grapher/StapParser.hxx index e11e7302..f4f6bdef 100644 --- a/grapher/StapParser.hxx +++ b/grapher/StapParser.hxx @@ -12,12 +12,15 @@ class StapParser CSVData _csv; Gtk::Window& _win; GraphWidget& _widget; + int _errFd; public: StapParser(Gtk::Window& win, - GraphWidget& widget) : _win(win), _widget(widget) {} + GraphWidget& widget) : _win(win), _widget(widget), _errFd(-1) {} void parseData(std::tr1::shared_ptr<GraphDataBase> gdata, double time, const std::string& dataString); bool ioCallback(Glib::IOCondition ioCondition); - + bool errIoCallback(Glib::IOCondition ioCondition); + int getErrFd() { return _errFd; } + void setErrFd(int fd) { _errFd = fd; } }; } |