<div dir="ltr">On Wed, Oct 30, 2013 at 10:16 AM, Tobias Hammer <span dir="ltr"><<a href="mailto:tobias.hammer@dlr.de" target="_blank">tobias.hammer@dlr.de</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<br>


<br>
See <a href="http://docs.racket-lang.org/inside/Custodians.html" target="_blank">http://docs.racket-lang.org/<u></u>inside/Custodians.html</a><br>
scheme_add_managed vs. scheme_add_managed_close_on_<u></u>exit <br>
<br>
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.<br>

</blockquote><div><br></div><div>Thanks Tobias, it looks like this is the key issue. I'm curious what Matthew has to say on it.<br><br></div><div>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?<br>

</div></div></div></div>