Binary files amit_l2tpd/l2tpd and amit_l2tpd.bak.20031226/l2tpd differ
diff -ruN amit_l2tpd/l2tpd.c amit_l2tpd.bak.20031226/l2tpd.c
--- amit_l2tpd/l2tpd.c	2003-12-26 14:34:43.000000000 +0800
+++ amit_l2tpd.bak.20031226/l2tpd.c	2003-12-04 14:37:59.000000000 +0800
@@ -1882,40 +1882,26 @@
 
 int main (int argc, char *argv[])
 {
-	int pid;
-	FILE *fp;
-
-	fp = fopen("/var/run/l2tpd.pid", "r");
-	if(fp != NULL)
-	{
-		Dprintf("l2tpd: kill priveous l2tpd\n");
-		fscanf(fp, "%d", &pid);
-		fclose(fp);
-		kill(pid, 15);
-	}
-	fp = fopen("/var/run/l2tpd.pid", "w");
-	if(fp == NULL)
-	{
-		Dprintf("l2tpd: cant open pid file\n");
-		exit(0);
-	}
-	else
-	{
-		fprintf(fp, "%d", getpid());
-		fclose(fp);
-	}
-	
-	Dprintf("l2tpd: Enter l2tpd\r\n");
+	#ifdef FOR_DEBUG
+		printf("l2tpd: Enter l2tpd\r\n");
+	#endif
 	
 	openlog (BINARY, LOG_ODELAY, LOG_DAEMON);
-	Dprintf("l2tpd: Open log over\r\n");
+	#ifdef FOR_DEBUG
+		printf("l2tpd: Open log over\r\n");
+	#endif
+	Nprintf("Starting daemon\n");
 	
     init (argc, argv);
-	Dprintf("l2tpd: Initialize over based on arguments\r\n");
+    #ifdef FOR_DEBUG
+		printf("l2tpd: Initialize over based on arguments\r\n");
+	#endif
 	
     dial_no_tmp = calloc (128, sizeof (char));
     network_thread ();
-	Dprintf("l2tpd: network_thread over\r\n");
+    #ifdef FOR_DEBUG
+		printf("l2tpd: network_thread over\r\n");
+	#endif
 	
     return 0;
 }
Binary files amit_l2tpd/l2tpd.o and amit_l2tpd.bak.20031226/l2tpd.o differ
