summaryrefslogtreecommitdiffstats
path: root/grapher/StapParser.cxx
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-10-20 22:14:00 +0200
committerTim Moore <timoore@redhat.com>2009-10-27 12:52:24 +0100
commit6fb95a63ecfa32b1524790ee42695f19773f2174 (patch)
tree7b5e93a6334b22bc7f99eeb82791f73c2ade71e3 /grapher/StapParser.cxx
parenta8f1332f49206b314871fbdea50ab1045401a024 (diff)
downloadsystemtap-steved-6fb95a63ecfa32b1524790ee42695f19773f2174.tar.gz
systemtap-steved-6fb95a63ecfa32b1524790ee42695f19773f2174.tar.xz
systemtap-steved-6fb95a63ecfa32b1524790ee42695f19773f2174.zip
Change stap parser to use an input file descriptor other than stdin
* grapher/StapParser.hxx (_inFd, getInFd, setInFd): new member and fuctions * grapher/StapParser.cxx (ioCallback): Use _inFd variable instead of stdin. * grapher/grapher.cxx (StapLauncher::launch): Don't read input from stap on stdin; use the the read end of the pipe.
Diffstat (limited to 'grapher/StapParser.cxx')
-rw-r--r--grapher/StapParser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/grapher/StapParser.cxx b/grapher/StapParser.cxx
index 9bb9b9c9..eea85006 100644
--- a/grapher/StapParser.cxx
+++ b/grapher/StapParser.cxx
@@ -70,7 +70,7 @@ vector<string> commaSplit(const boost::sub_range<Glib::ustring>& range)
return true;
char buf[256];
ssize_t bytes_read = 0;
- bytes_read = read(STDIN_FILENO, buf, sizeof(buf) - 1);
+ bytes_read = read(_inFd, buf, sizeof(buf) - 1);
if (bytes_read <= 0)
{
_win.hide();