library/src/blockclass/BP-BlockClass.cc
// Threaded cURL requests cannot use signals.  It causes incorrect longjmp's and a host
// of other mess.  Use this to fix that.
Threaded cURL requests cannot use signals.  It causes incorrect longjmp's and a host
of other mess.  Use this to fix that.
Threaded cURL requests cannot use signals . It causes incorrect longjmp ' s and a host of other mess . Use this to fix that .
BP_ERROR_T Block::HttpDisableCurlSignalsForThreadedApps() {
	if(!this->httpSession)
		return ERR_FAILURE;
	if(!this->httpSession->curl)
		return ERR_FAILURE;
	curl_easy_setopt(this->httpSession->curl, CURLOPT_NOSIGNAL, 1);
	return ERR_SUCCESS;
}
BP_ERROR_T Block :: HttpDisableCurlSignalsForThreadedApps ( ) { if ( ! this -> httpSession ) return ERR_FAILURE ; if ( ! this -> httpSession -> curl ) return ERR_FAILURE ; curl_easy_setopt ( this -> httpSession -> curl , CURLOPT_NOSIGNAL , 1 ) ; return ERR_SUCCESS ; }
Threaded cURL requests cannot use signals.
Threaded cURL requests cannot use signals .
// enable the option // return indicating success