aboutsummaryrefslogtreecommitdiff
path: root/src/dirax.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-08 18:22:59 +0100
committerThomas White <taw@physics.org>2010-01-08 18:22:59 +0100
commit0c14d9175d5390a4620a7f82cbf33264b45f36bc (patch)
tree4f3ee8510b5a5818bf9c78cd77e253a059da3d37 /src/dirax.c
parent5cd70513c3c00820a76ce11059774ef08e8e5118 (diff)
Add option to skip indexing program
Diffstat (limited to 'src/dirax.c')
-rw-r--r--src/dirax.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dirax.c b/src/dirax.c
index ff136ae5..0c509e06 100644
--- a/src/dirax.c
+++ b/src/dirax.c
@@ -497,7 +497,7 @@ static void search_peaks(struct image *image)
}
-void index_pattern(struct image *image)
+void index_pattern(struct image *image, int no_index)
{
unsigned int opts;
int saved_stderr;
@@ -506,6 +506,8 @@ void index_pattern(struct image *image)
/* Do peak search and splurge out 'xfel.drx' */
search_peaks(image);
+ if ( no_index ) return;
+
saved_stderr = dup(STDERR_FILENO);
image->dirax_pid = forkpty(&image->dirax_pty, NULL, NULL, NULL);
if ( image->dirax_pid == -1 ) {