<HTML dir=ltr><HEAD><TITLE>Re: [GRASS-dev] Locking is not supported on Windows</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR><BASE href=http://mailstore.rossoalice.alice.it/exchange/Alice000000001264700/Bozze/R:%20[GRASS-dev]%20Locking%20is%20not%20supported%20on%20Windows.EML/1_text.htm></HEAD>
<BODY>
<DIV id=idOWAReplyText18756 dir=ltr>
<DIV dir=ltr><FONT size=2>Hi,</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>thanks to all for the exhaustive replies.</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>&gt;Are you sure? AFAICT, etc/lock should always succeed on Windows, i.e.<BR>&gt;it won't stop you from having two sessions with the same current<BR>&gt;mapset. You will get a warning, but the mapset should still be<BR>&gt;changed.</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>sorry but not. I tried to find out why here <A href="http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/general/g.mapset/main.c">http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/general/g.mapset/main.c</A>&nbsp;but I still don't know many things in GRASS code to understand it well (and my C is very very rusty). I just found that at lines 155-156 a conditional&nbsp;calls G_fatal_error if the GIS_LOCK env var is not set (var retrieved at line 154).</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>&gt;If g.mapset doesn't work, you can always change the GISDBASE,<BR>&gt;LOCATION_NAME and MAPSET variables directly with g.gisenv.</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>Yes, it doesn't produce errors, but it doesn't change the location/mapset!</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>Marco</FONT></DIV></DIV></BODY></HTML>