Make sure to unlink the pidfile only if our instance created it, but even in case of error

This commit is contained in:
jsteube
2017-02-17 08:59:22 +01:00
parent ef004e85f0
commit 79e8b6a6b9
4 changed files with 12 additions and 14 deletions
-2
View File
@@ -20,8 +20,6 @@
#include <psapi.h>
#endif // _WIN
void unlink_pidfile (hashcat_ctx_t *hashcat_ctx);
int pidfile_ctx_init (hashcat_ctx_t *hashcat_ctx);
void pidfile_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
+2
View File
@@ -1319,6 +1319,8 @@ typedef struct pidfile_ctx
pidfile_data_t *pd;
bool pidfile_written;
} pidfile_ctx_t;
typedef struct kernel_rule