[racket] Running code on exit....
At Thu, 1 Sep 2011 20:14:09 -0700, John Clements wrote:
>
> On Sep 1, 2011, at 8:03 PM, Eli Barzilay wrote:
>
> > Two hours ago, Robby Findler wrote:
> >> Does it make sense to have the resource managed by a custodian? That
> >> is, operate the ffi/C level where you can extend what happens when a
> >> custodian is shutdown to close whatever needs closing or finalizing
> >> or whatever before it gets gc'd but when the custodian is shutdown?
> >
> > The problem is that you can always just exit the process. Maybe
> > atexit() is more fitting?
>
> Ooh, I like it. That sounds promising.
>
> Thanks for the pointer.
There's also scheme_add_atexit_closer(), which is connected to
custodians and works for places.