summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/ouroboros/config.h.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ouroboros/config.h.in b/include/ouroboros/config.h.in
index 46685569..60654676 100644
--- a/include/ouroboros/config.h.in
+++ b/include/ouroboros/config.h.in
@@ -47,6 +47,7 @@
#define SHM_AP_RBUFF_PREFIX "/ouroboros.rbuff."
#define IRMD_MAX_FLOWS 4096
#define IRMD_THREADPOOL_SIZE 5
+#define IRMD_ACCEPT_TIMEOUT 100 /* ms */
#define IRMD_FLOW_TIMEOUT 5000 /* ms */
#define LOG_DIR "/@LOG_DIR@/"