[GRASS-SVN] r67501 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 6 04:08:55 PST 2016
Author: martinl
Date: 2016-01-06 04:08:55 -0800 (Wed, 06 Jan 2016)
New Revision: 67501
Modified:
grass/trunk/lib/init/grass.py
Log:
grass.py: cache exception when closing GUI fails
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2016-01-06 10:16:14 UTC (rev 67500)
+++ grass/trunk/lib/init/grass.py 2016-01-06 12:08:55 UTC (rev 67501)
@@ -1361,7 +1361,10 @@
import signal
for pid in env['GUI_PID'].split(','):
debug("Exiting GUI with pid={}".format(pid))
- os.kill(int(pid), signal.SIGTERM)
+ try:
+ os.kill(int(pid), signal.SIGTERM)
+ except OSError as e:
+ message(_("Unable to close GUI. {}".format(e)))
def clear_screen():
"""Clear terminal"""
More information about the grass-commit
mailing list