From cd0f3036f606276654f2293a4d90df5efd21bd99 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 12 Oct 2009 22:16:03 +0200 Subject: tail -f: avoid a race condition * NEWS (Bug fixes): Mention it. * src/tail.c (check_fspec): New function. (tail_forever_inotify): Ensure there is no new data before entering the inotify events wait loop. --- NEWS | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 29bedac28..7057d8707 100644 --- a/NEWS +++ b/NEWS @@ -8,15 +8,22 @@ GNU coreutils NEWS -*- outline -*- Even then, chcon may still be useful. [bug introduced in coreutils-8.0] - stat -f recognizes more file system types: afs, cifs, anon-inode FS, - btrfs, cgroupfs, cramfs-wend, debugfs, futexfs, hfs, inotifyfs, minux3, - nilfs, securityfs, selinux, xenfs - md5sum now prints checksums atomically so that concurrent processes will not intersperse their output. This also affected sum, sha1sum, sha224sum, sha384sum and sha512sum. [the bug dates back to the initial implementation] + stat -f recognizes more file system types: afs, cifs, anon-inode FS, + btrfs, cgroupfs, cramfs-wend, debugfs, futexfs, hfs, inotifyfs, minux3, + nilfs, securityfs, selinux, xenfs + + tail -f (inotify-enabled) now avoids a race condition. + Before, any data appended in the tiny interval between the initial + read-to-EOF and the inotify watch initialization would be ignored + initially (until more data was appended), or forever, if the file + were first renamed or unlinked or never modified. + [The race was introduced in coreutils-7.5] + ** New features md5sum --check now also accepts openssl-style checksums. -- cgit v1.2.3-54-g00ecf