diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-10 12:28:02 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-10 13:03:15 +0200 |
commit | aca897331ff55c80d926b0bdb90f1c8962bf7a6e (patch) | |
tree | c71b8d8c6b35ad012f4a8bb673749275fa3806bf /include | |
parent | 27c99995c8059eb897b704d84596ca0abca6db9b (diff) | |
download | ouroboros-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.in | 1 |
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@/" |