diff options
Diffstat (limited to 'xorg-server/os/log.c')
-rw-r--r-- | xorg-server/os/log.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xorg-server/os/log.c b/xorg-server/os/log.c index f19faf5ee..53b358629 100644 --- a/xorg-server/os/log.c +++ b/xorg-server/os/log.c @@ -216,6 +216,9 @@ LogInit(const char *fname, const char *backup) free(oldLog); } } + else { + unlink(logFileName); + } if ((logFile = fopen(logFileName, "w")) == NULL) FatalError("Cannot open log file \"%s\"\n", logFileName); setvbuf(logFile, NULL, _IONBF, 0); |