mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-30 03:48:17 +00:00
Fix ctrl-c in benchmark mode
This commit is contained in:
parent
af1701c765
commit
fa8a74d6d9
@ -118,7 +118,7 @@ void hc_signal (void (callback) (int))
|
|||||||
|
|
||||||
void mycracked (status_ctx_t *status_ctx)
|
void mycracked (status_ctx_t *status_ctx)
|
||||||
{
|
{
|
||||||
if (status_ctx->devices_status != STATUS_RUNNING) return;
|
//if (status_ctx->devices_status != STATUS_RUNNING) return;
|
||||||
|
|
||||||
status_ctx->devices_status = STATUS_CRACKED;
|
status_ctx->devices_status = STATUS_CRACKED;
|
||||||
|
|
||||||
@ -131,7 +131,8 @@ void mycracked (status_ctx_t *status_ctx)
|
|||||||
|
|
||||||
void myabort (status_ctx_t *status_ctx)
|
void myabort (status_ctx_t *status_ctx)
|
||||||
{
|
{
|
||||||
if (status_ctx->devices_status != STATUS_RUNNING) return;
|
//those checks create problems in benchmark mode, it's simply too short of a timeframe where it's running as STATUS_RUNNING
|
||||||
|
//if (status_ctx->devices_status != STATUS_RUNNING) return;
|
||||||
|
|
||||||
status_ctx->devices_status = STATUS_ABORTED;
|
status_ctx->devices_status = STATUS_ABORTED;
|
||||||
|
|
||||||
@ -144,7 +145,7 @@ void myabort (status_ctx_t *status_ctx)
|
|||||||
|
|
||||||
void myquit (status_ctx_t *status_ctx)
|
void myquit (status_ctx_t *status_ctx)
|
||||||
{
|
{
|
||||||
if (status_ctx->devices_status != STATUS_RUNNING) return;
|
//if (status_ctx->devices_status != STATUS_RUNNING) return;
|
||||||
|
|
||||||
status_ctx->devices_status = STATUS_QUIT;
|
status_ctx->devices_status = STATUS_QUIT;
|
||||||
|
|
||||||
@ -157,7 +158,7 @@ void myquit (status_ctx_t *status_ctx)
|
|||||||
|
|
||||||
void bypass (status_ctx_t *status_ctx)
|
void bypass (status_ctx_t *status_ctx)
|
||||||
{
|
{
|
||||||
if (status_ctx->devices_status != STATUS_RUNNING) return;
|
//if (status_ctx->devices_status != STATUS_RUNNING) return;
|
||||||
|
|
||||||
status_ctx->devices_status = STATUS_BYPASS;
|
status_ctx->devices_status = STATUS_BYPASS;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user