[racket] Running code on exit....

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Sep 1 23:03:49 EDT 2011

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?

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the users mailing list.