From aca897331ff55c80d926b0bdb90f1c8962bf7a6e Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Wed, 10 Aug 2016 12:28:02 +0200 Subject: 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. --- src/irmd/reg_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/irmd/reg_api.h') 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 */ -- cgit v1.2.3