Browse code

- forgot to initialize the timer process when forking is enabled

Jan Janak authored on 08/04/2003 12:31:40
Showing 1 changed files
... ...
@@ -795,6 +795,11 @@ int main_loop()
795 795
 			close(sockfd[0]);
796 796
 			unix_tcp_sock=sockfd[1];
797 797
 #endif
798
+			if (init_child(PROC_TIMER) < 0) {
799
+				LOG(L_ERR, "timer: init_child failed\n");
800
+				goto error;
801
+			}
802
+			
798 803
 			for(;;){
799 804
 				/* debug:  instead of doing something usefull */
800 805
 				/* (placeholder for timers, etc.) */