...
|
...
|
@@ -74,6 +74,9 @@
|
74
|
74
|
#include "session.h"
|
75
|
75
|
#include "others.h"
|
76
|
76
|
|
|
77
|
+static pthread_mutex_t virusaction_lock = PTHREAD_MUTEX_INITIALIZER;
|
|
78
|
+static pthread_mutex_t detstats_lock = PTHREAD_MUTEX_INITIALIZER;
|
|
79
|
+
|
77
|
80
|
#ifdef _WIN32
|
78
|
81
|
void virusaction(const char *filename, const char *virname, const struct optstruct *opts)
|
79
|
82
|
{
|
...
|
...
|
@@ -86,9 +89,6 @@ void virusaction(const char *filename, const char *virname, const struct optstru
|
86
|
86
|
#define VE_FILENAME "CLAM_VIRUSEVENT_FILENAME"
|
87
|
87
|
#define VE_VIRUSNAME "CLAM_VIRUSEVENT_VIRUSNAME"
|
88
|
88
|
|
89
|
|
-static pthread_mutex_t virusaction_lock = PTHREAD_MUTEX_INITIALIZER;
|
90
|
|
-static pthread_mutex_t detstats_lock = PTHREAD_MUTEX_INITIALIZER;
|
91
|
|
-
|
92
|
89
|
void virusaction(const char *filename, const char *virname, const struct optstruct *opts)
|
93
|
90
|
{
|
94
|
91
|
pid_t pid;
|