Browse code

Changed child_init to reflect Jan's change in init_child.

Juha Heinanen authored on 14/04/2003 06:13:29
Showing 1 changed files
... ...
@@ -159,7 +159,7 @@ static int mod_init(void)
159 159
 static int child_init(int rank)
160 160
 {
161 161
 	/* Check if database is needed by child */
162
-	if (db_mode == 0) {
162
+	if (((db_mode == 0) && (rank > 0)) || ((db_mode == 1) && (rank == PROC_FIFO))) {
163 163
 		db_handle = db_init(db_url);
164 164
 		if (!db_handle) {
165 165
 			LOG(L_ERR, "domain:child_init(): Unable to connect database\n");