summaryrefslogtreecommitdiff
path: root/os/log.c
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2012-03-12 14:41:51 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-03-12 14:41:51 +0000
commit0c6c47ecd1fa99971ca6853337fc9cb888bc6049 (patch)
tree746be177b035fc1d2aa20e66f55cb20addbed929 /os/log.c
parentb1be72c5ca6cb98ba64637990b142be0f1710a19 (diff)
parentea0598773ec2859df09ae62f027db6ee611f51c0 (diff)
Merge branch 'cygwin-patches-for-1.12' into cygwin-release-1.12xserver-cygwin-1.12.0-1
Diffstat (limited to 'os/log.c')
-rw-r--r--os/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/log.c b/os/log.c
index 671a01bb6..8c102bbb1 100644
--- a/os/log.c
+++ b/os/log.c
@@ -203,6 +203,8 @@ 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);