From 9afed4b88d3822fb0fd947179cb34ed8e3430d79 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Wed, 14 Nov 2018 09:32:06 +0100 Subject: [PATCH] Pidfile: Treat a corrupted pidfile like a not existing pidfile --- docs/changes.txt | 3 ++- src/pidfile.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index 9dcf7f601..db0bdfff5 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -28,6 +28,7 @@ ## Improvements ## +- Startup: Show OpenCL runtime initialization message (per device) - xxHash: Added support for using the version provided by the OS/distribution ## @@ -57,7 +58,7 @@ - Hardware Monitor: Renamed --gpu-temp-disable to --hwmon-disable - Memory: Limit maximum host memory allocation depending on bitness - Memory: Reduced default maximum bitmap size from 24 to 18 and give a notice to use --bitmap-max to restore -- Startup: Show OpenCL runtime initialization message (per device) +- Pidfile: Treat a corrupted pidfile like a not existing pidfile - Tests: Added hash-mode 11700 (Streebog-256) - Tests: Added hash-mode 11750 (HMAC-Streebog-256 (key = $pass), big-endian) - Tests: Added hash-mode 11760 (HMAC-Streebog-256 (key = $salt), big-endian) diff --git a/src/pidfile.c b/src/pidfile.c index 7f0ed281d..81faac2d3 100644 --- a/src/pidfile.c +++ b/src/pidfile.c @@ -29,11 +29,11 @@ static int check_running_process (hashcat_ctx_t *hashcat_ctx) if (nread != 1) { - event_log_error (hashcat_ctx, "Cannot read %s", pidfile_filename); + //event_log_error (hashcat_ctx, "Cannot read %s", pidfile_filename); hcfree (pd); - return -1; + return 0; } if (pd->pid)