From e85c2defa41ece194c9afdbe5aefae58b372d8bb Mon Sep 17 00:00:00 2001 From: Hartmut Reuter Date: Mon, 14 May 2001 23:54:01 +0000 Subject: [PATCH] restore-writelogbuffer-for-mrafs-20010514 MR-AFs is making use of this to hook into logging to write multiline messages into the log ==================== This delta was composed from multiple commits as part of the CVS->Git migration. The checkin message with each commit was inconsistent. The following are the additional commit messages. ==================== move forward to current version of function --- src/util/serverLog.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/util/serverLog.c b/src/util/serverLog.c index 079c7d200..d7375aa7b 100644 --- a/src/util/serverLog.c +++ b/src/util/serverLog.c @@ -76,6 +76,16 @@ int mrafsStyleLogs = 0; int printLocks = 0; static char ourName[MAXPATHLEN]; +void WriteLogBuffer(buf,len) + char *buf; + afs_uint32 len; +{ + LOCK_SERVERLOG(); + if (serverLogFD > 0) + write(serverLogFD, buf, len); + UNLOCK_SERVERLOG(); +} + /* VARARGS1 */ void FSLog (const char *format, ...) { -- 2.39.5