Re: How kill executables started with spawnShell or executeShell when program finish?

2020-10-27 Thread Jack via Digitalmars-d-learn
On Tuesday, 27 October 2020 at 22:14:53 UTC, Dukc wrote: On Tuesday, 27 October 2020 at 15:16:33 UTC, Marcone wrote: [...] This is a bit heavyweight, but should be doable: have your primary process to start a watchdog process for itself. The watchdog continuosly sends messages to the

Re: How kill executables started with spawnShell or executeShell when program finish?

2020-10-27 Thread Dukc via Digitalmars-d-learn
On Tuesday, 27 October 2020 at 15:16:33 UTC, Marcone wrote: Becouse my program use plink.exe running with spawnShell or executeShell. But when my program finish with some crash, or killed with windows task manager by user, Plink still running. How can I stop all process initialized with

Re: How kill executables started with spawnShell or executeShell when program finish?

2020-10-27 Thread Jack via Digitalmars-d-learn
On Tuesday, 27 October 2020 at 15:16:33 UTC, Marcone wrote: Becouse my program use plink.exe running with spawnShell or executeShell. But when my program finish with some crash, or killed with windows task manager by user, Plink still running. How can I stop all process initialized with

Re: How kill executables started with spawnShell or executeShell when program finish?

2020-10-27 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Tuesday, 27 October 2020 at 19:30:06 UTC, Ferhat Kurtulmuş wrote: On Tuesday, 27 October 2020 at 19:23:22 UTC, Ferhat Kurtulmuş wrote: On Tuesday, 27 October 2020 at 15:16:33 UTC, Marcone wrote: [...] IMHO, your d program cannot have direct control over a spawned process. However, I

Re: How kill executables started with spawnShell or executeShell when program finish?

2020-10-27 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Tuesday, 27 October 2020 at 19:23:22 UTC, Ferhat Kurtulmuş wrote: On Tuesday, 27 October 2020 at 15:16:33 UTC, Marcone wrote: [...] IMHO, your d program cannot have direct control over a spawned process. However, I suggest a road map for you, although I am not sure if it works. [...]

Re: How kill executables started with spawnShell or executeShell when program finish?

2020-10-27 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Tuesday, 27 October 2020 at 15:16:33 UTC, Marcone wrote: Becouse my program use plink.exe running with spawnShell or executeShell. But when my program finish with some crash, or killed with windows task manager by user, Plink still running. How can I stop all process initialized with