[racket] Custodian behavior on normal exit

From: Jonathan Schuster (schuster at ccs.neu.edu)
Date: Wed Oct 30 10:36:34 EDT 2013

On Wed, Oct 30, 2013 at 10:16 AM, Tobias Hammer <tobias.hammer at dlr.de>wrote:

> Custodians can have entries that are cleaned up on program exit and
> entries that are only cleaned up whenever a custodian is (regularly) shut
> down.
> See http://docs.racket-lang.org/**inside/Custodians.html<http://docs.racket-lang.org/inside/Custodians.html>
> scheme_add_managed vs. scheme_add_managed_close_on_**exit
> As far as i can tell the subprocess is added with scheme_add_managed.
> Patching this to *_close_on_exit changes the behavior to what the OP
> expect. I'm not sure if close on exit or not is the better default for
> subprocesses, better ask Matthew what his intentions were.

Thanks Tobias, it looks like this is the key issue. I'm curious what
Matthew has to say on it.

This brings up another question, though. I would expect the custodian to
shut down all of its managed resources when Racket exits, and not just with
an explicit shutdown. What are the cases in which one wants to avoid
shutting down a resource on exit?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131030/547cd03c/attachment.html>

Posted on the users mailing list.