--- projects/cms/source/host/c++/SubPipe.cpp 2001/03/06 00:41:30 1.1 +++ projects/cms/source/host/c++/SubPipe.cpp 2001/03/27 00:04:44 1.2 @@ -2,7 +2,7 @@ SubPipe::SubPipe(string command){ - p = new iopipestream("statgrab.pl"); + p = new iopipestream(command.c_str()); pid = (*p).pid(); } // subPipe @@ -27,6 +27,8 @@ SubPipe::~SubPipe(){ // wait for process to finish first waitpid(pid , 0, 0); + // remove all pointers to it, free up the memory so + // we can reclaim the file handles back delete p; } // ~SubPipe