summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);