aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/felix.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-06-27 17:18:50 +0200
committerThomas White <taw@physics.org>2018-06-28 11:27:49 +0200
commit33dfce497f2dcdcf071f6f83d88756b0f6bd99df (patch)
treedf19280b0a9ee1e3d828a9365bc6e3bb84ed20b6 /libcrystfel/src/felix.c
parent946ee4bc4a0bc13a965d170ab959cfe7a2cf1b27 (diff)
Remove worker process numbers from temporary filenames
Since we've had the separate worker folders for a long time, it's not needed any more. Removing them will make the temporary folders easier to clean up.
Diffstat (limited to 'libcrystfel/src/felix.c')
-rw-r--r--libcrystfel/src/felix.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libcrystfel/src/felix.c b/libcrystfel/src/felix.c
index c7ff2d01..e686c2e6 100644
--- a/libcrystfel/src/felix.c
+++ b/libcrystfel/src/felix.c
@@ -328,7 +328,7 @@ static void write_gve(struct image *image, struct felix_private *gp)
int i;
char filename[1024];
double a, b, c, al, be, ga;
- snprintf(filename, 1023, "xfel-%i.gve", image->id);
+ snprintf(filename, 1023, "xfel.gve");
fh = fopen(filename, "w");
if ( !fh ) {
ERROR("Couldn't open temporary file '%s'\n", filename);
@@ -371,9 +371,9 @@ static char *write_ini(struct image *image, struct felix_private *gp)
filename = malloc(1024);
if ( filename == NULL ) return NULL;
- snprintf(filename, 1023, "xfel-%i.ini", image->id);
- snprintf(gveFilename, 1023, "xfel-%i.gve", image->id);
- snprintf(logFilename, 1023, "xfel-%i.log", image->id);
+ snprintf(filename, 1023, "xfel.ini");
+ snprintf(gveFilename, 1023, "xfel.gve");
+ snprintf(logFilename, 1023, "xfel.log");
fh = fopen(filename, "w");
if ( !fh ) {
@@ -457,7 +457,7 @@ int felix_index(struct image *image, IndexingPrivate *ipriv)
felix->gp = gp;
- snprintf(gff_filename, 1023, "xfel-%i.felix", image->id);
+ snprintf(gff_filename, 1023, "xfel.felix");
remove(gff_filename);
felix->pid = forkpty(&felix->pty, NULL, NULL, NULL);