Browse code

process table introduced

Jiri Kuthan authored on 18/09/2002 07:50:47
Showing 2 changed files
... ...
@@ -7,6 +7,7 @@
7 7
  
8 8
 #include "dprint.h"
9 9
 #include "globals.h"
10
+#include "pt.h"
10 11
  
11 12
 #include <stdarg.h>
12 13
 #include <stdio.h>
... ...
@@ -15,7 +16,7 @@ void dprint(char * format, ...)
15 15
 {
16 16
 	va_list ap;
17 17
 
18
-	fprintf(stderr, "%2d(%d) ", process_no, pids?pids[process_no]:0);
18
+	fprintf(stderr, "%2d(%d) ", process_no, my_pid());
19 19
 	va_start(ap, format);
20 20
 	vfprintf(stderr,format,ap);
21 21
 	fflush(stderr);
... ...
@@ -45,14 +45,14 @@ extern int dont_fork;
45 45
 extern int check_via;
46 46
 extern int received_dns;
47 47
 extern int syn_branch;
48
-extern int process_no;
48
+/* extern int process_no; */
49 49
 extern int sip_warning;
50 50
 extern int server_signature;
51 51
 /*
52 52
  * debug & log_stderr moved to dprint.h*/
53 53
 
54 54
 /* extern process_bm_t process_bit; */
55
-extern int *pids;
55
+/* extern int *pids; -moved to pt.h */
56 56
 
57 57
 extern int cfg_errors;
58 58
 extern unsigned int msg_no;
... ...
@@ -63,8 +63,10 @@ extern unsigned int shm_mem_size;
63 63
 char extern *fifo; /* FIFO name */
64 64
 extern int fifo_mode;
65 65
 
66
+/* moved to pt.h
66 67
 extern int *pids;
67 68
 extern int process_no;
69
+*/
68 70
 
69 71
 extern int reply_to_via;
70 72