Browse Source

Sync to updated etc/lock behaviour

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39252 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 15 years ago
parent
commit
f1a5ded9bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/init/grass.py

+ 1 - 1
lib/init/grass.py

@@ -523,7 +523,7 @@ def check_lock():
 		"%d" % os.getpid()])
 		"%d" % os.getpid()])
     if ret == 0:
     if ret == 0:
 	pass
 	pass
-    elif ret == 1:
+    elif ret == 2:
 	fatal("%s is currently running GRASS in selected mapset (file %s found). Concurrent use not allowed."
 	fatal("%s is currently running GRASS in selected mapset (file %s found). Concurrent use not allowed."
 	      % (user, lockfile))
 	      % (user, lockfile))
     else:
     else: