| Revision: | 1.1 |
| Committed: | Tue Mar 6 00:41:30 2001 UTC (24 years, 8 months ago) by ab11 |
| Content type: | text/plain |
| Branch: | MAIN |
| CVS Tags: | PROJECT_COMPLETION |
| Log Message: | Used to unfork() from iopipestream forks and free up file handles (was running out after a while). |
| # | Content |
|---|---|
| 1 | #include <iostream> |
| 2 | #include <string> |
| 3 | #include <sys/types.h> |
| 4 | #include <sys/wait.h> |
| 5 | #include "socket++-1.10/pipestream.h" // used to get calls to statgrab |
| 6 | |
| 7 | using std::string; |
| 8 | |
| 9 | class SubPipe { |
| 10 | |
| 11 | public: |
| 12 | // constructor |
| 13 | SubPipe(string command); |
| 14 | ~SubPipe(); |
| 15 | int getLine(string * fillme); |
| 16 | |
| 17 | private: |
| 18 | iopipestream * p; |
| 19 | pid_t pid; |
| 20 | |
| 21 | |
| 22 | }; // class |