2
0
Эх сурвалжийг харах

pdt: fixed rank testing in child init

Daniel-Constantin Mierla 16 жил өмнө
parent
commit
721d126145
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      modules_k/pdt/pdt.c

+ 1 - 1
modules_k/pdt/pdt.c

@@ -288,7 +288,7 @@ static int child_init(void)
 /* each child get a new connection to the database */
 static int mod_child_init(int r)
 {
-	if (r=PROC_INIT || r==PROC_MAIN || r==PROC_TCP_MAIN)
+	if (r==PROC_INIT || r==PROC_MAIN || r==PROC_TCP_MAIN)
 		return 0; /* do nothing for the main process */
 
 	if ( child_init()!=0 )