[Geany-Users] running scripts close on hitting F5

Frank Lanitz frank at xxxxx
Thu Oct 22 06:06:27 UTC 2020


On 22.10.20 08:03, Lex Trotman wrote:
> On Thu, 22 Oct 2020 at 15:38, Frank Lanitz <frank at frank.uvena.de> wrote:
>>
>> On 22.10.20 00:21, Lex Trotman wrote:
>>> The run scripts _should_ not overwrite unless `g_file_open_tmp()`
>>> fails and creates a duplicate filename.
>>
>> IIUC the OP is running two instances of Geany at the same time modifying
>> the same file.
> 
> Yes, but `g_file_open_tmp()` gets a pseudo random filename that does
> not exist and returns it with the open exclusive file descriptor,
> there can be no clash, even between multiple processes.  So one
> process will not delete another process's Geany script files.

Ah. Wasn't aware of that.


More information about the Users mailing list