Opened 6 years ago
Closed 6 years ago
#3631 closed defect (fixed)
Mapset remains locked after switch to it and exit
Reported by: | wenzeslaus | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.6.0 |
Component: | Startup | Version: | svn-trunk |
Keywords: | init, grass.py, lock, gislock, g.mapset | Cc: | |
CPU: | Unspecified | Platform: | Linux |
Description
To reproduce:
- Start in mapset A.
- Switch to mapset B.
- Exit.
- Mapset B is still locked.
The problem is that grass.py
tries to remove the lock from A, but that was already removed. No warning or error is generated, because grass.py
tries (try_remove()
) and thus ignores any errors. This behavior seems to be there at least since 7.0 (by looking at the code).
Influences:
- G7:g.mapset
- Settings > GRASS working environment > ...
- workspace loading with "session" (#3575)
Attachments (1)
Change History (4)
by , 6 years ago
Attachment: | unlock_current_mapset.diff added |
---|
comment:1 by , 6 years ago
Note:
See TracTickets
for help on using tickets.
The attached patch basically replaced removal of acquired lock stored in a variable
by removal based on the gisrc file.