From c559a3ca84a0258e4773571ae73fa7bba4c927b0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 25 Nov 1999 19:27:07 +0000 Subject: Update. 1999-11-25 H.J. Lu * stdlib/exit.c (exit): Run funtions only if __exit_funcs->idx > 0. 1999-11-25 Ulrich Drepper * manual/charset.texi (iconv Examples): Add iconv call to flush state. Reported by Andrew Clausen . 1999-11-25 Andreas Jaeger * manual/install.texi (Running make install): Better describe update from libc5. Patch by Michael Deutschmann . 1999-11-25 Andreas Jaeger * include/sys/mman.h: Remove K&R compatibility. 1999-11-15 Andreas Jaeger * misc/sys/mman.h: Use __REDIRECT for mmap, correct prototype to use __off64_t. 1999-11-25 Ulrich Drepper * iconv/iconv_prog.c (process_block): For stateful charsets write out byte sequence to get to initial state at the end of the file. which was reported to not work (which proofed to be wrong). --- stdlib/exit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'stdlib/exit.c') diff --git a/stdlib/exit.c b/stdlib/exit.c index f44c519aa7..f63dc1fdec 100644 --- a/stdlib/exit.c +++ b/stdlib/exit.c @@ -41,7 +41,7 @@ exit (int status) { struct exit_function_list *old; - do + while (__exit_funcs->idx > 0) { const struct exit_function *const f = &__exit_funcs->fns[--__exit_funcs->idx]; @@ -58,7 +58,6 @@ exit (int status) break; } } - while (__exit_funcs->idx > 0); old = __exit_funcs; __exit_funcs = __exit_funcs->next; -- cgit v1.2.3