At Wed, 20 Apr 2016 20:58:34 -0400, "'John Clements' via Racket Users" wrote:
> I feel like this must be a FAQ. I have a server process that I’m starting 
> with 
> process*, and I’d like to try to make sure that it gets killed when the 
> “program halts.” (Presumably, this corresponds to process end at the 
> command-line, or (more relevant to me) a click on “Run” in DrR, which AFAIK 
> means “custodian-shutdown-all” on the user’s program’s custodian.

Subprocesses in Racket have primitive support for termination on
custodian shutdown. See `current-subprocess-custodian-mode`.

If subprocesses didn't have primitive custodian support, then there
would be no safe solution to your problem. Any kind of primitive
resource allocation, such as creating a subprocess, should have
custodian support built in primitively, too.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to