From 9a13cce9ec3bd1f96cef1a043194bd5524bbb4c4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 14 Dec 2004 10:28:03 +0000 Subject: [DONT_UNLINK_WHILE_OPEN]: Add a FIXME comment explaining that using atexit like this is wrong. --- src/tac.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/tac.c') diff --git a/src/tac.c b/src/tac.c index ba206c1ef..4f6fb229a 100644 --- a/src/tac.c +++ b/src/tac.c @@ -375,6 +375,12 @@ tac_seekable (int input_fd, const char *file) #if DONT_UNLINK_WHILE_OPEN +/* FIXME-someday: remove all of this DONT_UNLINK_WHILE_OPEN junk. + Using atexit like this is wrong, since it can fail + when called e.g. 32 or more times. + But this isn't a big deal, since the code is used only on WOE/DOS + systems, and few people invoke tac on that many nonseekable files. */ + static const char *file_to_remove; static FILE *fp_to_close; -- cgit v1.2.3-54-g00ecf