Browse code

bug fix (hopefuly not bug introduction) initiatilization of main process's process_no etc moved behind open_fifo_server to make sure that the fifo server does not get main's values

Jiri Kuthan authored on 27/08/2002 20:35:36
Showing 1 changed files
... ...
@@ -494,16 +494,16 @@ int main_loop()
494 494
 						pids[process_no]=pid; /*should be shared mem anway*/
495 495
 				}
496 496
 		}
497
-		/* main process, receive loop */
498
-		pids[0]=getpid();
499
-		process_bit = 1;
500
-		process_no=0; /*main process number*/
501 497
 
502 498
 		/* if configured to do so, start a server for accepting FIFO commands */
503 499
 		if (open_fifo_server()<0) {
504 500
 			LOG(L_ERR, "opening fifo server failed\n");
505 501
 			goto error;
506 502
 		}
503
+		/* main process, receive loop */
504
+		pids[0]=getpid();
505
+		process_bit = 1;
506
+		process_no=0; /*main process number*/
507 507
 		
508 508
 		     /* We will call child_init even if we
509 509
 		      * do not fork