summaryrefslogtreecommitdiff
path: root/src/irmd/reg_api.h
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-08-10 12:28:02 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-08-10 13:03:15 +0200
commitaca897331ff55c80d926b0bdb90f1c8962bf7a6e (patch)
treec71b8d8c6b35ad012f4a8bb673749275fa3806bf /src/irmd/reg_api.h
parent27c99995c8059eb897b704d84596ca0abca6db9b (diff)
downloadouroboros-aca897331ff55c80d926b0bdb90f1c8962bf7a6e.tar.gz
ouroboros-aca897331ff55c80d926b0bdb90f1c8962bf7a6e.zip
irmd: Graceful shutdown
Threads from the threadpool will now check the state of the IRMd and exit gracefully without a need to cancel them. This avoids the unsafe call of pthread_cancel in the signal handler.
Diffstat (limited to 'src/irmd/reg_api.h')
-rw-r--r--src/irmd/reg_api.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/reg_api.h b/src/irmd/reg_api.h
index 73e1141b..2c84f4c1 100644
--- a/src/irmd/reg_api.h
+++ b/src/irmd/reg_api.h
@@ -49,7 +49,7 @@ struct reg_api {
struct reg_api * reg_api_create(pid_t pid);
void reg_api_destroy(struct reg_api * i);
-void reg_api_sleep(struct reg_api * i);
+int reg_api_sleep(struct reg_api * i);
void reg_api_wake(struct reg_api * i);
#endif /* OUROBOROS_IRMD_REG_API_H */