char namebuf[AFSDIR_PATH_MAX];
#ifndef AFS_NT40_ENV
int nofork = 0;
+ struct stat sb;
#endif
#ifdef AFS_AIX32_ENV
struct sigaction nsa;
background();
#endif /* ! AFS_NT40_ENV */
- if (!DoSyslog) {
+ if ((!DoSyslog)
+#ifndef AFS_NT40_ENV
+ && (!(fstat(AFSDIR_BOZLOG_FILE, &sb) == 0) &&
+ (S_ISFIFO(sb.st_mode)))
+#endif
+ ) {
strcpy(namebuf, AFSDIR_BOZLOG_FILE);
strcat(namebuf, ".old");
renamefile(AFSDIR_BOZLOG_FILE, namebuf); /* try rename first */
#include <strings.h>
#endif
#endif
+#include <sys/stat.h>
#include "afsutil.h"
#include "fileutil.h"
#if defined(AFS_PTHREAD_ENV)
char FileName[MAXPATHLEN];
#ifndef AFS_NT40_ENV
+ struct stat statbuf;
+
if (serverLogSyslog) {
openlog(serverLogSyslogTag, LOG_PID, serverLogSyslogFacility);
return (0);
}
+
+ /* Support named pipes as logs by not rotating them */
+ if ((fstat(fileName, &statbuf) == 0) && (S_ISFIFO(statbuf.st_mode)))
+ return (0);
#endif
if (mrafsStyleLogs) {