Reopen the log file even if the filename exists. This fixes the
situation where an external program moves or deletes the log
file, then creates a new file with the same log file name.
Change-Id: I3b98d6fc0d05c7ab231f84e9a271f925506ab51f
Reviewed-on: https://gerrit.openafs.org/11725
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
{
int flags = O_WRONLY | O_APPEND | O_CREAT;
- if (access(fileName, F_OK) == 0)
- return 0; /* exists, no need to reopen. */
-
#if !defined(AFS_NT40_ENV)
if (serverLogSyslog) {
return 0;