From e8b2eea89d3ba69925091d1bf7d02b559fd8a8a0 Mon Sep 17 00:00:00 2001 From: Martin Griffin Date: Thu, 22 Jun 2023 17:16:52 +0100 Subject: [PATCH] Sensible names for temporary ROMs in Hydra --- tools/mgba-rom-test-hydra/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mgba-rom-test-hydra/main.c b/tools/mgba-rom-test-hydra/main.c index 846e51120b..14caa6144a 100644 --- a/tools/mgba-rom-test-hydra/main.c +++ b/tools/mgba-rom-test-hydra/main.c @@ -296,7 +296,7 @@ int main(int argc, char *argv[]) _exit(2); } char rom_path[FILENAME_MAX]; - sprintf(rom_path, "/tmp/file%05d", getpid()); + sprintf(rom_path, "/tmp/mgba-rom-test-hydra-%05d", getpid()); int tmpfd; if ((tmpfd = open(rom_path, O_WRONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR)) == -1) { @@ -378,7 +378,7 @@ int main(int argc, char *argv[]) } } else { runners[i].pid = pid; - sprintf(runners[i].rom_path, "/tmp/file%05d", runners[i].pid); + sprintf(runners[i].rom_path, "/tmp/mgba-rom-test-hydra-%05d", runners[i].pid); runners[i].outfd = pipefds[0]; if (close(pipefds[1]) == -1) {