reorder exit code to defer stdio flush until after dtors
authorRich Felker <dalias@aerifal.cx>
Thu, 14 Jun 2012 12:36:06 +0000 (08:36 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 14 Jun 2012 12:36:06 +0000 (08:36 -0400)
commitad5a332c750550adbd45f474e5936cae65b4fd5e
tree84f9025171a2a99cb19bd94574df10ddc367f4e7
parentde05a2ac22d33bd7631f182143ecea6dd01d9406
reorder exit code to defer stdio flush until after dtors

this is required in case dtors use stdio.

also remove the old comments; one was cruft from when the code used to
be using function pointers and conditional calls, and has little
motivation now that we're using weak symbols. the other was just
complaining about having to support dtors even though the cost was
made essentially zero in the non-use case by the way it's done here.
src/exit/exit.c