summaryrefslogtreecommitdiff
path: root/src/irmd/registry.h
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-07-15 15:49:23 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-07-15 15:49:23 +0200
commite14d0da88d4f3fcd0c19c231b59d31189c4d71ad (patch)
tree936e0f4857a48a4be17087c2d32b754b09433747 /src/irmd/registry.h
parent71956f22abec7bb15f6bfc52b4168ff85499eea1 (diff)
downloadouroboros-e14d0da88d4f3fcd0c19c231b59d31189c4d71ad.tar.gz
ouroboros-e14d0da88d4f3fcd0c19c231b59d31189c4d71ad.zip
irmd: Fix accessing reg_api struct after destroy
The destroy now only frees after all threads stopped using the object. Also fixes a SEGV when trying to allocate a flow to a remote name.
Diffstat (limited to 'src/irmd/registry.h')
-rw-r--r--src/irmd/registry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/registry.h b/src/irmd/registry.h
index 04ce7cf8..8e9a7af1 100644
--- a/src/irmd/registry.h
+++ b/src/irmd/registry.h
@@ -59,7 +59,7 @@ struct reg_api {
/* the api will block on this */
enum reg_i_state state;
- pthread_cond_t wakeup;
+ pthread_cond_t cond_state;
pthread_mutex_t mutex;
};