X-Git-Url: https://www.flypig.org.uk/git/?a=blobdiff_plain;f=src%2Fhashcat.c;h=541e7b84799b65a8c77fb329634c299f03df7ca4;hb=9a548298eeeac85b2f9bcf442ad3394dc7eb05ed;hp=da7d8e9e7d1c235cf473089927e0a0baf400b782;hpb=19e36694da48d00d362f8c7c8b1964bea6b92716;p=hashcat.git diff --git a/src/hashcat.c b/src/hashcat.c index da7d8e9..541e7b8 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -13984,7 +13984,6 @@ int main (int argc, char **argv) #ifdef HAVE_HWMON hm_attrs_t hm_adapters_nv[DEVICES_MAX] = { { { 0 }, 0, 0, 0, 0, 0 } }; hm_attrs_t hm_adapters_amd[DEVICES_MAX] = { { { 0 }, 0, 0, 0, 0, 0 } }; - #endif if (gpu_temp_disable == 0) { @@ -14110,33 +14109,17 @@ int main (int argc, char **argv) * OpenCL devices: allocate buffer for device specific information */ - #ifdef HAVE_HWMON int *temp_retain_fanspeed_value = (int *) mycalloc (data.devices_cnt, sizeof (int)); int *temp_retain_fanpolicy_value = (int *) mycalloc (data.devices_cnt, sizeof (int)); ADLOD6MemClockState *od_clock_mem_status = (ADLOD6MemClockState *) mycalloc (data.devices_cnt, sizeof (ADLOD6MemClockState)); int *od_power_control_status = (int *) mycalloc (data.devices_cnt, sizeof (int)); - #endif - - /** - * enable custom signal handler(s) - */ - - if (benchmark == 0) - { - hc_signal (sigHandler_default); - } - else - { - hc_signal (sigHandler_benchmark); - } /** * User-defined GPU temp handling */ - #ifdef HAVE_HWMON if (gpu_temp_disable == 1) { gpu_temp_abort = 0; @@ -14158,6 +14141,19 @@ int main (int argc, char **argv) data.gpu_temp_retain = gpu_temp_retain; #endif + /** + * enable custom signal handler(s) + */ + + if (benchmark == 0) + { + hc_signal (sigHandler_default); + } + else + { + hc_signal (sigHandler_benchmark); + } + /** * inform the user */