Re: [GRASS-dev] pygrass: How to allow Ctrl-C to stop all subprocesses of GridModule

2018-03-13 Thread Glynn Clements
Moritz Lennert wrote: > Any hint how to allow Ctrl-C to stop all subprocesses ? If you can get their PIDs, you should be able to use os.setpgid() to move them into the same process group as the main script. Ctrl-C (by default) sends SIGINT to all processes in the foreground process group. --

Re: [GRASS-dev] pygrass: How to allow Ctrl-C to stop all subprocesses of GridModule

2018-03-09 Thread Nikos Alexandris
* Moritz Lennert [2018-03-09 09:16:01 +0100]: Hi Nikos ! Am 9. März 2018 09:01:25 MEZ schrieb Nikos Alexandris : * Moritz Lennert [2018-03-08 15:05:46 +0100]: And another question on GridModule: For

Re: [GRASS-dev] pygrass: How to allow Ctrl-C to stop all subprocesses of GridModule

2018-03-09 Thread Moritz Lennert
Hi Nikos ! Am 9. März 2018 09:01:25 MEZ schrieb Nikos Alexandris : >* Moritz Lennert [2018-03-08 15:05:46 >+0100]: > >>And another question on GridModule: >> >>For the same module using GridModule to split the task of edge >>detection in

Re: [GRASS-dev] pygrass: How to allow Ctrl-C to stop all subprocesses of GridModule

2018-03-08 Thread Nikos Alexandris
* Moritz Lennert [2018-03-08 15:05:46 +0100]: And another question on GridModule: For the same module using GridModule to split the task of edge detection in a raster map into many parallel tasks, when I want to stop the module run using Ctrl-C I get tons of

[GRASS-dev] pygrass: How to allow Ctrl-C to stop all subprocesses of GridModule

2018-03-08 Thread Moritz Lennert
And another question on GridModule: For the same module using GridModule to split the task of edge detection in a raster map into many parallel tasks, when I want to stop the module run using Ctrl-C I get tons of Process PoolWorker-315: Traceback (most recent call last): Traceback (most