Browse code

- fixed process_count() (forgot to add some() when I added tcp_disable)

Andrei Pelinescu-Onciul authored on 18/04/2003 13:58:15
Showing 3 changed files
... ...
@@ -25,7 +25,7 @@
25 25
 VERSION = 0
26 26
 PATCHLEVEL = 8
27 27
 SUBLEVEL =   11
28
-EXTRAVERSION = pre20
28
+EXTRAVERSION = pre21
29 29
 
30 30
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
31 31
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")
... ...
@@ -877,11 +877,11 @@ int main_loop()
877 877
 #endif
878 878
 	/*DEBUG- remove it*/
879 879
 #ifdef DEBUG
880
-	printf("\n% 3d processes, % 3d children * % 3d listening addresses + main"
881
-			" + fifo %s\n", process_no+1, children_no, sock_no,
880
+	fprintf(stderr, "\n% 3d processes (%3d), % 3d children * % 3d listening addresses"
881
+			"+ main + fifo %s\n", process_no+1, process_count(), children_no, sock_no,
882 882
 			(timer_list)?"+ timer":"");
883 883
 	for (r=0; r<=process_no; r++){
884
-		printf("% 3d   % 5d\n", r, pt[r].pid);
884
+		fprintf(stderr, "% 3d   % 5d - %s\n", r, pt[r].pid, pt[r].desc);
885 885
 	}
886 886
 #endif
887 887
 	process_no=0; 
... ...
@@ -71,8 +71,8 @@ inline static int process_count()
71 71
 		/* fifo server */
72 72
 		+((fifo==NULL || strlen(fifo)==0) ? 0 : 1 )
73 73
 #ifdef USE_TCP
74
-		+ (!tcp_disable)?( 1/* tcp main */ + tcp_children_no + 
75
-							(timer_list ? 0: 1)):0 /* add the timer proc.
74
+		+((!tcp_disable)?( 1/* tcp main */ + tcp_children_no + 
75
+							(timer_list ? 0: 1)):0) /* add the timer proc.
76 76
 													  if not already taken
77 77
 													  into account */
78 78
 #endif