[plt-scheme] adding to custodian shutdown actions?

From: Robby Findler (robby at cs.uchicago.edu)
Date: Mon May 21 12:26:38 EDT 2007

You can only add such actions at the low-leve (ie, in C).

Is the database connection something that you make at the C level already?

Robby

On 5/21/07, Robert Nikander <nikander at nc.rr.com> wrote:
> Hi,
>
> Is there a way to add a custom cleanup action to those that occur when
> (custodian-shutdown-all) is called?  Specifically, I have a database
> connection that I was forgetting to close (I thought GC might close it,
> but I guess not).  I'm thinking this is the kind of thing that could be
>   managed by a custodian, but I don't see any procedure like
> `custodian-register-resource' or `thread-register-cleanup'.
>
> Rob
>
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>


Posted on the users mailing list.