From bb6f4e2bbe92e60cf91ab136409999a2031642ca Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 6 Mar 2017 19:13:43 -0400 Subject: [PATCH] added missing prototype --- include/villas/utils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/villas/utils.h b/include/villas/utils.h index 913a607ac..b916757fe 100644 --- a/include/villas/utils.h +++ b/include/villas/utils.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include "log.h" @@ -225,4 +226,7 @@ static inline int log2i(long long x) { } /** Sleep with rdtsc */ -void rdtsc_sleep(uint64_t nanosecs, uint64_t start); \ No newline at end of file +void rdtsc_sleep(uint64_t nanosecs, uint64_t start); + +/** Register a exit callback for program termination (SIGINT / SIGKILL). */ +void signals_init(void (*cb)(int signal, siginfo_t *sinfo, void *ctx));