[Geany-Users] running scripts close on hitting F5

Lex Trotman elextr at xxxxx
Thu Oct 22 06:03:00 UTC 2020


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.

>
> .f
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users


More information about the Users mailing list