[Haskell-cafe] how to terminate a (Posix) process and all its subprocesses?

Johannes Waldmann johannes.waldmann at htwk-leipzig.de
Tue Jul 24 18:52:44 UTC 2018


Hi Brandon, hi Levent,

> The trick here is to set the option that creates a process group

Ah yes!  interruptProcessGroupOf  seems to work here. Thanks very much.

My code:
https://gitlab.imn.htwk-leipzig.de/waldmann/pure-matchbox/blob/master/random-termination.hs#L141
but (apart from its general hackiness) I think it does not work right
when I thread-kill this from within my own program.
Which I don't, at the moment, but certainly will, sometime later.

- J.W.


More information about the Haskell-Cafe mailing list