Avoid errors in parallel creation of tempfiles
|Reported by:||sbl||Owned by:|
|Keywords:||G_tempfile() startup init||Cc:|
When tempfiles are created in parallel, conflicts and thus fatal errors can arise when two processes try to create the .tmp/HOST dir at the same time: https://lists.osgeo.org/pipermail/grass-dev/2017-March/084471.html
The conflict seems to arise only from the directory.
So, maybe it could help if the directory is created at the start of a GRASS session and removed only when the GRASS session is closed (exit)?