[GRASS-SVN] r67303 - grass/trunk/lib/python/pygrass/modules/grid

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 21 06:20:43 PST 2015


Author: annakrat
Date: 2015-12-21 06:20:43 -0800 (Mon, 21 Dec 2015)
New Revision: 67303

Modified:
   grass/trunk/lib/python/pygrass/modules/grid/grid.py
Log:
GridModule: fix leaving processes behind

Modified: grass/trunk/lib/python/pygrass/modules/grid/grid.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/grid/grid.py	2015-12-21 13:55:36 UTC (rev 67302)
+++ grass/trunk/lib/python/pygrass/modules/grid/grid.py	2015-12-21 14:20:43 UTC (rev 67303)
@@ -547,6 +547,8 @@
             pool = mltp.Pool(processes=self.processes)
             result = pool.map_async(cmd_exe, self.get_works())
             result.wait()
+            pool.close()
+            pool.join()
             if not result.successful():
                 raise RuntimeError(_("Execution of subprocesses was not successful"))
 



More information about the grass-commit mailing list