On Fri, 2018-09-07 at 15:53 +0000, Andrea Fontana via Digitalmars-d-learn
wrote:
>
[…]
> void main()
> {
>
> ...
> auto yourpid = spawnProcess(...);
> scope(exit) kill(yourpid, SIGINT); // Or SIGKILL :)
> // Or: scope(exit) wait(yourpid);
> ...
> }
> Nice thought, but the spawn is deep in the heart of the application, so scope(exit) isn't feasible. I am rapidly coming to the conclusion, that I am going to have to use a registry and apply kill as the last act in main. :-( -- Russel. =========================================== Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Road m: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk
signature.asc
Description: This is a digitally signed message part
