dgaudet 98/04/11 11:51:35
Modified: src/main http_log.c
Log:
overzealous renaming
Revision Changes Path
1.52 +5 -5 apache-1.3/src/main/http_log.c
Index: http_log.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/main/http_log.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- http_log.c 1998/04/11 12:00:29 1.51
+++ http_log.c 1998/04/11 18:51:34 1.52
@@ -389,15 +389,15 @@
}
-void ap_log_pid (pool *p, char *ap_pid_fname)
+void ap_log_pid (pool *p, char *fname)
{
FILE *pid_file;
- if (!ap_pid_fname) return;
- ap_pid_fname = ap_server_root_relative (p, ap_pid_fname);
- if(!(pid_file = fopen(ap_pid_fname,"w"))) {
+ if (!fname) return;
+ fname = ap_server_root_relative (p, fname);
+ if(!(pid_file = fopen(fname,"w"))) {
perror("fopen");
- fprintf(stderr,"httpd: could not log pid to file %s\n",
ap_pid_fname);
+ fprintf(stderr,"httpd: could not log pid to file %s\n", fname);
exit(1);
}
fprintf(pid_file,"%ld\n",(long)getpid());