Browse code

volatile

git-svn: trunk@1521

Nigel Horne authored on 2005/05/06 16:31:33
Showing 1 changed files
... ...
@@ -22,7 +22,7 @@
22 22
  *
23 23
  * For installation instructions see the file INSTALL that came with this file
24 24
  */
25
-static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.194 2005/05/05 16:36:17 nigelhorne Exp $";
25
+static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.195 2005/05/06 07:31:33 nigelhorne Exp $";
26 26
 
27 27
 #define	CM_VERSION	"0.84f"
28 28
 
... ...
@@ -367,8 +367,8 @@ static	int	debug_level = 0;
367 367
 
368 368
 static	pthread_mutex_t	n_children_mutex = PTHREAD_MUTEX_INITIALIZER;
369 369
 static	pthread_cond_t	n_children_cond = PTHREAD_COND_INITIALIZER;
370
-static	unsigned	int	n_children = 0;
371
-static	unsigned	int	max_children = 0;
370
+static	volatile	unsigned	int	n_children = 0;
371
+static	volatile	unsigned	int	max_children = 0;
372 372
 static	pthread_mutex_t	accept_mutex = PTHREAD_MUTEX_INITIALIZER;
373 373
 static	pthread_cond_t	accept_cond = PTHREAD_COND_INITIALIZER;
374 374
 static	int	accept_inputs;