On 22.10.20 08:03, Lex Trotman wrote:
> On Thu, 22 Oct 2020 at 15:38, Frank Lanitz <[email protected]> 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.
_______________________________________________
Users mailing list
[email protected]
https://lists.geany.org/cgi-bin/mailman/listinfo/users

Reply via email to