restore-writelogbuffer-for-mrafs-20010514
authorHartmut Reuter <reuter@rzg.mpg.de>
Mon, 14 May 2001 23:54:01 +0000 (23:54 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 14 May 2001 23:54:01 +0000 (23:54 +0000)
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

index 079c7d2..d7375aa 100644 (file)
@@ -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, ...)
 {