- new option WITH_APACHE_LATESTLOG
that patches rotatelogs to always keep a hardlink to the latest log file, but without the seconds-since-epoch integer. Just as a convenience - when developing web apps, it makes it easier to just check the log file. Submitted by: Palle Girgensohn
This commit is contained in:
parent
3f2a71d4bf
commit
db241e1eb3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=126493
1 changed files with 19 additions and 0 deletions
19
www/apache13-modssl/files/rotatelogs.c.patch
Normal file
19
www/apache13-modssl/files/rotatelogs.c.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- src/support/rotatelogs.c~ Mon Aug 3 11:15:33 1998
|
||||
+++ src/support/rotatelogs.c Sun Mar 26 22:42:40 2000
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <time.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
#define BUFSIZE 65536
|
||||
#define ERRMSGSZ 82
|
||||
@@ -95,6 +96,8 @@
|
||||
}
|
||||
else {
|
||||
close(nLogFDprev);
|
||||
+ unlink(szLogRoot);
|
||||
+ link(buf2, szLogRoot);
|
||||
}
|
||||
nMessCount = 0;
|
||||
}
|
Loading…
Reference in a new issue