|
@@ -27,6 +27,17 @@ ProgMon::ProgMon(std::string path)
|
|
|
|
|
|
ProgMon::~ProgMon()
|
|
|
{
|
|
|
+ std::cout<<"~ProgMon"<<std::endl;
|
|
|
+ unsigned int i;
|
|
|
+ for(i=0;i<mvectorprog.size();i++)
|
|
|
+ {
|
|
|
+ if(mvectorprog[i].mProcess != 0)
|
|
|
+ {
|
|
|
+ mvectorprog[i].mProcess->kill();
|
|
|
+ // mvectorprog[i].mProcess->close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ std::cout<<"End Std out thread."<<std::endl;
|
|
|
mbstdoutrun = false;
|
|
|
mpthread_stdout->join();
|
|
|
|
|
@@ -57,16 +68,8 @@ ProgMon::~ProgMon()
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- unsigned int i;
|
|
|
- for(i=0;i<mvectorprog.size();i++)
|
|
|
- {
|
|
|
- if(mvectorprog[i].mProcess != 0)
|
|
|
- {
|
|
|
- mvectorprog[i].mProcess->kill();
|
|
|
- // mvectorprog[i].mProcess->close();
|
|
|
- }
|
|
|
- }
|
|
|
- mvectorprog.clear();
|
|
|
+
|
|
|
+// mvectorprog.clear();
|
|
|
}
|
|
|
|
|
|
std::vector<ProgUnit> ProgMon::loadprogunit(std::string path)
|