--- ppp-2.4.2/pppd/utils.c	Tue Jan 13 05:13:08 2004
+++ ppp-2.4.2/pppd/utils.c	Sat May  1 11:51:14 2004
@@ -673,12 +673,20 @@ log_write(level, buf)
     syslog(level, "%s", buf);
     if (log_to_fd >= 0 && (level != LOG_DEBUG || debug)) {
 	int n = strlen(buf);
+	char *buf2;
+	time_t now;
+	(void)time(&now);
+	buf2=malloc(n+30);
+	buf2[0]='\0';
+	sprintf(buf2,"%lu %i %s",now, getpid(), buf);
+	n=strlen(buf2);
 
-	if (n > 0 && buf[n-1] == '\n')
+	if (n > 0 && buf2[n-1] == '\n')
 	    --n;
-	if (write(log_to_fd, buf, n) != n
+	if (write(log_to_fd, buf2, n) != n
 	    || write(log_to_fd, "\n", 1) != 1)
 	    log_to_fd = -1;
+	free(buf2);
     }
 }
 
