mirror of https://github.com/vitalif/grive2
removed signal handler
parent
a79edc9c2b
commit
72052edf37
|
@ -59,14 +59,6 @@ size_t ReadCallback( void *ptr, std::size_t size, std::size_t nmemb, std::string
|
||||||
return count ;
|
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
|
} // end of local namespace
|
||||||
|
|
||||||
namespace gr { namespace http {
|
namespace gr { namespace http {
|
||||||
|
@ -188,12 +180,10 @@ long CurlAgent::Get(
|
||||||
const Header& hdr )
|
const Header& hdr )
|
||||||
{
|
{
|
||||||
Trace("HTTP GET \"%1%\"", url ) ;
|
Trace("HTTP GET \"%1%\"", url ) ;
|
||||||
|
|
||||||
Init() ;
|
Init() ;
|
||||||
CURL *curl = m_pimpl->curl ;
|
|
||||||
|
|
||||||
// set get specific options
|
// 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 ) ;
|
return ExecCurl( url, dest, hdr ) ;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue