Re: [PATCH] gdb/testsuite: Use file_rename_atomic in gdb_do_cache too
Tom Tromey <[email protected]> Wed, 22 Jul 2026 09:50:15 -0600
| Newsgroups | gmane.comp.gdb.patches |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Pedro" == Pedro Alves <[email protected]> writes: Pedro> gdb_do_cache in cache.exp does the same thing: in GDB_PARALLEL mode, Pedro> each worker writes the results cache to a per-pid temporary file and Pedro> then atomically renames it into place, so it can hit the same EBUSY Pedro> race on Windows. It was missed by that commit. Pedro> Fix it by using file_rename_atomic there too. Looks good. Approved-By: Tom Tromey <[email protected]> Tom