From 72052edf3709241a55abb728f4a0e67aa15ffe23 Mon Sep 17 00:00:00 2001 From: Nestal Wan Date: Tue, 12 Jun 2012 01:24:22 +0800 Subject: [PATCH] removed signal handler --- libgrive/src/http/CurlAgent.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/libgrive/src/http/CurlAgent.cc b/libgrive/src/http/CurlAgent.cc index c7187a9..f61f3cb 100644 --- a/libgrive/src/http/CurlAgent.cc +++ b/libgrive/src/http/CurlAgent.cc @@ -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 ) ; }