From c9b96a76a5eafb044b112589b9812bcd18b69fb1 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 20 Nov 2015 10:09:06 +0000 Subject: [PATCH] =?UTF-8?q?navercrawl=20=EC=A2=85=EB=A3=8C=EB=B0=A9?= =?UTF-8?q?=EB=B2=95=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://192.168.0.12/source@225 8346c931-da38-4b9b-9d4c-e48b93cbd075 --- CrawlerList/smanage.cpp | 9 +++++++++ CrawlerList/smanage.h | 1 + CrawlerList/widget.cpp | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/CrawlerList/smanage.cpp b/CrawlerList/smanage.cpp index 566c908..68b766a 100644 --- a/CrawlerList/smanage.cpp +++ b/CrawlerList/smanage.cpp @@ -150,7 +150,16 @@ void SManage::WaitExitProcess() { if (m_pro[i].state() == QProcess::Running) m_pro[i].kill(); + //m_pro[i].terminate(); } bQuit = UseProcess(); } } + +void SManage::clossProcess() +{ + for(int i = 0; i < C_PROCESS_MAX; i++) + { + m_pro[i].close(); + } +} diff --git a/CrawlerList/smanage.h b/CrawlerList/smanage.h index 36c2db5..9e46f2d 100644 --- a/CrawlerList/smanage.h +++ b/CrawlerList/smanage.h @@ -25,6 +25,7 @@ public: void SetParent(Widget *pWidget); void WaitExitProcess(); virtual bool Update() = 0; + void clossProcess(); protected: virtual void Start() = 0; QString EncodetoUtf8(QString _str,bool _bExt=false); diff --git a/CrawlerList/widget.cpp b/CrawlerList/widget.cpp index a6f278d..411e309 100644 --- a/CrawlerList/widget.cpp +++ b/CrawlerList/widget.cpp @@ -244,6 +244,11 @@ void Widget::StopButton() m_nMode = E_MODE_WAIT; SetCrawlingState("Stop"); m_strCrawlingID.clear(); + //qDebug() << m_nPlatform; + if(m_nPlatform == 4) + { + m_pManage[m_nPlatform]->clossProcess(); + } } void Widget::Update()