Browse code

- process_count was wrong when tcp was disabled

Andrei Pelinescu-Onciul authored on 26/11/2004 16:27:22
Showing 1 changed files
... ...
@@ -72,18 +72,15 @@ inline static int process_count()
72 72
 		/* receivers and attendant */
73 73
 		(dont_fork ? 1 : children_no*udp_listeners + 1)
74 74
 		/* timer process */
75
-		+ (timer_list ? 1 : 0 )
75
+		+ 1 /* always, we need it in most cases, and we can't tell here
76
+			   & now if we don't need it */
76 77
 		/* fifo server */
77 78
 		+((fifo==NULL || strlen(fifo)==0) ? 0 : 1 )
78 79
 		/* unixsock server*/
79 80
 		+(unixsock_name?unixsock_children:0)
80 81
 #ifdef USE_TCP
81
-		+((!tcp_disable)?( 1/* tcp main */ + tcp_children_no + 
82
-							(timer_list ? 0: 1)):0) /* add the timer proc.
83
-													  if not already taken
84
-													  into account */
82
+		+((!tcp_disable)?( 1/* tcp main */ + tcp_children_no ):0) 
85 83
 #endif
86
-		
87 84
 		;
88 85
 }
89 86