From 0cd968284566913321fa24a94e473150d652dfc5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 25 Jan 2011 18:20:48 +0100 Subject: wait() for autoindexers properly --- src/dirax.c | 2 +- src/mosflm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dirax.c b/src/dirax.c index 46c14a78..626560da 100644 --- a/src/dirax.c +++ b/src/dirax.c @@ -515,7 +515,7 @@ void run_dirax(struct image *image) close(dirax->pty); free(dirax->rbuffer); - wait(&status); + waitpid(dirax->pid, &status, __WNOTHREAD); free(dirax); } 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. */ -- cgit v1.2.3