This fixes a race in the tail-2/assert test: the file foo may be removed
before the tail process had the chance to open it.
Andreas.
2004-03-22 Andreas Schwab <[EMAIL PROTECTED]>
* tests/tail-2/assert: Avoid race between tail and rm.
--- tests/tail-2/assert
+++ tests/tail-2/assert
@@ -30,6 +30,8 @@
tail_pid=$!
# Arrange for the tail process to die after 12 seconds.
(sleep 12; kill $tail_pid) &
+# Wait for tail to start
+sleep 1
rm -f foo
echo sleeping for 7 seconds...
sleep 7
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux AG, Maxfeldstra�e 5, 90409 N�rnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils