projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f04a7c5
)
Fixed bug #410: Can not rotate log
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 9 Sep 2005 11:29:54 +0000
(11:29 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 9 Sep 2005 11:29:54 +0000
(11:29 +0000)
src/log.c
patch
|
blob
|
history
diff --git
a/src/log.c
b/src/log.c
index
06540ce
..
f459fb1
100644
(file)
--- a/
src/log.c
+++ b/
src/log.c
@@
-2,7
+2,7
@@
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: log.c,v 1.26 2005-09-09 10:33:45 adam Exp $
+ * $Id: log.c,v 1.27 2005-09-09 11:29:54 adam Exp $
*/
/**
@@
-164,8
+164,10
@@
static void rotate_log()
/* windows can't rename a file if it is open */
fclose(l_file);
l_file = stderr;
-#endif
+ MoveFileEx(l_fname, newname, MOVEFILE_REPLACE_EXISTING);
+#else
rename(l_fname, newname);
+#endif
yaz_log_reopen();
}