Add comment about serverlog locking

The lock protects global state such as the logging FD and the
syslog-related variables.

Change-Id: I5ea1b6945c10047da14d35b948a6a0ea53b55add
Reviewed-on: https://gerrit.openafs.org/12123
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
Benjamin Kaduk 2015-12-02 22:56:57 -06:00
parent a8c9997e93
commit 4bfb874d19

View File

@ -62,6 +62,8 @@ dummyThreadNum(void)
}
static int (*threadNumProgram) (void) = dummyThreadNum;
/* After single-threaded startup, accesses to serverlogFD and
* serverLogSyslog* are protected by LOCK_SERVERLOG(). */
static int serverLogFD = -1;
#ifndef AFS_NT40_ENV