[project @ 2005-01-21 16:02:47 by simonmar]
authorsimonmar <unknown>
Fri, 21 Jan 2005 16:02:48 +0000 (16:02 +0000)
committersimonmar <unknown>
Fri, 21 Jan 2005 16:02:48 +0000 (16:02 +0000)
commit6c764c914959c1d85a6d764184e8135f6f808196
treeebb86c5c4e33e2295a48ffb5566b4e8ab929f480
parentbdcf7efb348fab0c8d398f341d596aa024516a82
[project @ 2005-01-21 16:02:47 by simonmar]
Don't try to run finalizers at program exit.  This turned out to be
hard if not impossible to do in general, so now we don't attempt it at
all.

The Main.main wrapper, previously called runIO and now called
runMainIO, flushes stdout and stderr before exiting.  This should
catch most cases where programs rely on Handles being flushed at
program exit, but note that now if you simply drop a Handle in your
program, there's no guarantee it'll be flushed on exit.  If the
punters complain enough, I suppose we could implement a global
Handle table and flush them all at exit... I'd rather not do this if
possible, though.  Better to teach people to close their Handles
properly.
Control/Concurrent.hs
GHC/TopHandler.lhs