Make sure to unlink the pidfile only if our instance created it, but even in case of error
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -1319,6 +1319,8 @@ typedef struct pidfile_ctx
|
||||
|
||||
pidfile_data_t *pd;
|
||||
|
||||
bool pidfile_written;
|
||||
|
||||
} pidfile_ctx_t;
|
||||
|
||||
typedef struct kernel_rule
|
||||
|
||||
Reference in New Issue
Block a user