Browse Source

- forgot to initialize the timer process when forking is enabled

Jan Janak 22 years ago
parent
commit
50d7560030
1 changed files with 5 additions and 0 deletions
  1. 5 0
      main.c

+ 5 - 0
main.c

@@ -795,6 +795,11 @@ int main_loop()
 			close(sockfd[0]);
 			unix_tcp_sock=sockfd[1];
 #endif
+			if (init_child(PROC_TIMER) < 0) {
+				LOG(L_ERR, "timer: init_child failed\n");
+				goto error;
+			}
+			
 			for(;;){
 				/* debug:  instead of doing something usefull */
 				/* (placeholder for timers, etc.) */