summaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-01-28 21:49:56 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-01-28 21:49:56 -0800
commit1f4a36cb97cb259ce8209de52229f33b341af9cd (patch)
treec2494be90cd499e28d0b354b9f275e609f2570b5 /ChangeLog
parent7266ebf56acbd34978d8bb99a2a87a15d0afdea9 (diff)
downloadtxr-1f4a36cb97cb259ce8209de52229f33b341af9cd.tar.gz
txr-1f4a36cb97cb259ce8209de52229f33b341af9cd.tar.bz2
txr-1f4a36cb97cb259ce8209de52229f33b341af9cd.zip
* stream.c (struct stdio_handle): New member, is_rotated.
Moved mode member down. (make_stdio_stream_common): Initialize is_rotated. (tail_strategy): Substantially rewritten in order to address a possible race condition, when a file is rotated. The issue is that even when the file disappears, or when the file has been replaced, we must continue reading from the old stream until the end, and only then can we switch to the newly rotated file.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog11
1 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3a1fac6f..0dec145e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
2014-01-28 Kaz Kylheku <kaz@kylheku.com>
+ * stream.c (struct stdio_handle): New member, is_rotated.
+ Moved mode member down.
+ (make_stdio_stream_common): Initialize is_rotated.
+ (tail_strategy): Substantially rewritten in order to address
+ a possible race condition, when a file is rotated.
+ The issue is that even when the file disappears, or when the file has
+ been replaced, we must continue reading from the old stream until the
+ end, and only then can we switch to the newly rotated file.
+
+2014-01-28 Kaz Kylheku <kaz@kylheku.com>
+
* stream.c (remove_path, rename_path): New functions.
* stream.h (remove_path, rename_path): Declared.