aboutsummaryrefslogtreecommitdiff
path: root/src/mosflm.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-01-25 18:20:48 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:11 +0100
commit0cd968284566913321fa24a94e473150d652dfc5 (patch)
treed879d5da9cf1385865ebc85a330f377fd9f4ee75 /src/mosflm.c
parent4cdabe2ffe4be188164a4b500980d5fdcfe9bd50 (diff)
wait() for autoindexers properly
Diffstat (limited to 'src/mosflm.c')
-rw-r--r--src/mosflm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mosflm.c b/src/mosflm.c
index 4aa6d51b..599de21a 100644
--- a/src/mosflm.c
+++ b/src/mosflm.c
@@ -571,7 +571,7 @@ void run_mosflm(struct image *image, UnitCell *cell)
close(mosflm->pty);
free(mosflm->rbuffer);
- wait(&status);
+ waitpid(mosflm->pid, &status, __WNOTHREAD);
/* Read the mosflm NEWMAT file and set cell candidate *
* Existence of this file means possible success. Pretty shady. */