* src/sort.c (cleanup): Clear temphead at the end.
commite175f0d5b2fe8e46409a60472a90fc9ee3ec605b
authorDan Hipschman <dsh@linux.ucla.edu>
Fri, 19 Jan 2007 22:03:18 +0000 (19 23:03 +0100)
committerJim Meyering <jim@meyering.net>
Fri, 19 Jan 2007 22:03:18 +0000 (19 23:03 +0100)
tree3f89bf46c05493200a07c258bf151f9686eb2731
parentfd77348fefb4d834e6945ee11190ce7b4a9224a1
* src/sort.c (cleanup): Clear temphead at the end.
(exit_cleanup): New function.
(main): Don't invoke atexit until we're ready.
Invoke it with exit_cleanup, not with cleanup and close_stdout,
to avoid a race condition with cleanup and signal handling.  More
details: http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/9508
ChangeLog
src/sort.c