[GRASS-SVN] r49849 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 21 02:17:12 EST 2011


Author: hamish
Date: 2011-12-20 23:17:12 -0800 (Tue, 20 Dec 2011)
New Revision: 49849

Modified:
   grass/trunk/lib/init/grass.py
Log:
cleanup_dir() doesn't remove the base dir for some reason (race condition?) leaving a pile of empty /tmp/grass7-'s behind, so try again

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2011-12-20 15:35:11 UTC (rev 49848)
+++ grass/trunk/lib/init/grass.py	2011-12-21 07:17:12 UTC (rev 49849)
@@ -103,6 +103,7 @@
     tmpdir, lockfile, remove_lockfile
     # all exits after setting up $tmpdir should also tidy it up
     cleanup_dir(tmpdir)
+    try_rmdir(tmpdir)
     if lockfile and remove_lockfile:
 	try_remove(lockfile)
 



More information about the grass-commit mailing list