v3.5.4 patch

This commit is contained in:
Jay D Dee
2017-01-31 23:14:44 -05:00
parent 698286189b
commit b0088fd392

View File

@@ -2912,10 +2912,10 @@ int main(int argc, char *argv[])
{ {
exit(1); exit(1);
} }
*/
if ( !check_cpu_capability() ) if ( !check_cpu_capability() )
exit(1); exit(1);
*/
if ( opt_algo == ALGO_NULL ) if ( opt_algo == ALGO_NULL )
{ {
fprintf(stderr, "%s: no algo supplied\n", argv[0]); fprintf(stderr, "%s: no algo supplied\n", argv[0]);
@@ -2963,6 +2963,9 @@ int main(int argc, char *argv[])
if ( !register_algo_gate( opt_algo, &algo_gate ) ) if ( !register_algo_gate( opt_algo, &algo_gate ) )
exit(1); exit(1);
if ( !check_cpu_capability() )
exit(1);
pthread_mutex_init(&stats_lock, NULL); pthread_mutex_init(&stats_lock, NULL);
pthread_mutex_init(&g_work_lock, NULL); pthread_mutex_init(&g_work_lock, NULL);
pthread_mutex_init(&rpc2_job_lock, NULL); pthread_mutex_init(&rpc2_job_lock, NULL);