diff options
author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-04-02 10:03:50 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-04-02 10:03:50 +0200 |
commit | 1e62996112a2a43bd0f572676bc8d87761ad6386 (patch) | |
tree | 96a92de0dede2128bbf22c82cee5e753ff4b0562 /src/irmd/main.c | |
parent | a240900525c0ffba92588a3deca88dfec82125e3 (diff) | |
download | ouroboros-1e62996112a2a43bd0f572676bc8d87761ad6386.tar.gz ouroboros-1e62996112a2a43bd0f572676bc8d87761ad6386.zip |
irmd: Fix thread creation order
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r-- | src/irmd/main.c | 2 |
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); |