removed signal handler

pull/40/head
Nestal Wan 2012-06-12 01:24:22 +08:00
parent a79edc9c2b
commit 72052edf37
1 changed files with 1 additions and 11 deletions

View File

@ -59,14 +59,6 @@ size_t ReadCallback( void *ptr, std::size_t size, std::size_t nmemb, std::string
return count ;
}
// Callback for SIGINT
void CallbackInt( int )
{
// TODO: instead of just disabling the signal, clean up the environment
// and exit gracefully
std::cout << " Signal disabled while downloading file..\n";
}
} // end of local namespace
namespace gr { namespace http {
@ -188,12 +180,10 @@ long CurlAgent::Get(
const Header& hdr )
{
Trace("HTTP GET \"%1%\"", url ) ;
Init() ;
CURL *curl = m_pimpl->curl ;
// set get specific options
::curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L);
::curl_easy_setopt(m_pimpl->curl, CURLOPT_HTTPGET, 1L);
return ExecCurl( url, dest, hdr ) ;
}