commented out the SignalHandler

pull/40/head v0.0.3
Matchman Green 2012-05-03 00:17:16 +08:00
parent 5d302a0909
commit 915303d205
2 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@
*/ */
#include "Download.hh" #include "Download.hh"
#include "util/SignalHandler.hh" // #include "util/SignalHandler.hh"
#include <openssl/evp.h> #include <openssl/evp.h>
@ -61,7 +61,7 @@ Download::~Download( )
std::string Download::Finish() const std::string Download::Finish() const
{ {
// Unregister the signal // Unregister the signal
SignalHandler::GetInstance().UnregisterSignal( SIGINT ) ; // SignalHandler::GetInstance().UnregisterSignal( SIGINT ) ;
std::string result ; std::string result ;

View File

@ -20,7 +20,7 @@
#include "HTTP.hh" #include "HTTP.hh"
#include "Download.hh" #include "Download.hh"
#include "util/SignalHandler.hh" // #include "util/SignalHandler.hh"
// dependent libraries // dependent libraries
#include <curl/curl.h> #include <curl/curl.h>
@ -151,7 +151,7 @@ void GetFile(
const Headers& hdr ) const Headers& hdr )
{ {
// Register the callback // Register the callback
SignalHandler::GetInstance().RegisterSignal( SIGINT, &CallbackInt ) ; // SignalHandler::GetInstance().RegisterSignal( SIGINT, &CallbackInt ) ;
Download dl( filename, Download::NoChecksum() ) ; Download dl( filename, Download::NoChecksum() ) ;