summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-04-02 09:48:43 +0000
committerSander Vrijders <sander.vrijders@ugent.be>2017-04-02 09:48:43 +0000
commit4e25827bd78ef32ab01715ff7cc8737a5165fc6c (patch)
tree96a92de0dede2128bbf22c82cee5e753ff4b0562
parenta240900525c0ffba92588a3deca88dfec82125e3 (diff)
parent1e62996112a2a43bd0f572676bc8d87761ad6386 (diff)
downloadouroboros-4e25827bd78ef32ab01715ff7cc8737a5165fc6c.tar.gz
ouroboros-4e25827bd78ef32ab01715ff7cc8737a5165fc6c.zip
Merged in dstaesse/ouroboros/be-irmd (pull request #452)
irmd: Fix thread creation order
-rw-r--r--src/irmd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index 966be500..19d27bf9 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -2278,11 +2278,11 @@ int main(int argc,
}
pthread_create(&irmd->tpm, NULL, threadpoolmgr, NULL);
- pthread_join(irmd->tpm, NULL);
pthread_create(&irmd->irm_sanitize, NULL, irm_sanitize, NULL);
pthread_create(&irmd->shm_sanitize, NULL, shm_sanitize, irmd->rdrb);
+ pthread_join(irmd->tpm, NULL);
pthread_join(irmd->irm_sanitize, NULL);
pthread_cancel(irmd->shm_sanitize);