diff options
author | Thomas White <taw@physics.org> | 2010-07-06 18:31:40 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:52 +0100 |
commit | 901edc57b68bc08f42a165b9f015aa48f8b50633 (patch) | |
tree | ac2a9aae5f0e69fa92610ce764dfcdd752a4500b /src/indexamajig.c | |
parent | ae5c7478b4e5e0fe0ef421c3be7cd7f452913739 (diff) |
indexamajig: Add missing lock
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 548d60dc..3a3dfb56 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -742,7 +742,9 @@ int main(int argc, char *argv[]) /* Tell the thread to exit */ struct process_args *pargs = worker_args[i]; + pthread_mutex_lock(&pargs->control_mutex); pargs->finish = 1; + pthread_mutex_unlock(&pargs->control_mutex); /* Wait for it to join */ pthread_join(workers[i], NULL); |