diff options
author | Thomas White <taw@physics.org> | 2023-08-24 16:18:06 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-08-24 16:18:06 +0200 |
commit | 25e025a5a34d59fa8affcdeba2ea1c82d9e60016 (patch) | |
tree | ac662fa95e4c665028b5b078dce737c3dca05a7d /src | |
parent | 11aa16f82432df051f1e055b28315346d9106188 (diff) |
align_detector: Delete old results file before running pede
It doesn't always return an error code.
Diffstat (limited to 'src')
-rw-r--r-- | src/align_detector.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/align_detector.c b/src/align_detector.c index 872d0e64..e6c71966 100644 --- a/src/align_detector.c +++ b/src/align_detector.c @@ -31,6 +31,7 @@ #include <config.h> #endif +#include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -308,6 +309,8 @@ int main(int argc, char *argv[]) fprintf(fh, "end\n"); fclose(fh); + unlink("millepede.res"); + r = system("pede millepede.txt"); if ( r == -1 ) { ERROR("Failed to run Millepde: %s\n", strerror(errno)); |