diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-05-12 17:49:19 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-05-12 17:49:19 +0200 |
commit | e285cfb2219eb5a1034208efaf6d1a2d875c721f (patch) | |
tree | 9afe5801c49c07e67a6fd262d866b39bacf66708 /src/afb-hsrv.c | |
parent | ae6f684d830871e81b0b4168424f6a4873eabbff (diff) |
free SIGALRM for boost timers
Change-Id: Ib6825c21b6589db6c7e9b8c5a179c347bcc0a93d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hsrv.c')
-rw-r--r-- | src/afb-hsrv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-hsrv.c b/src/afb-hsrv.c index 51502a64..d06d8fc2 100644 --- a/src/afb-hsrv.c +++ b/src/afb-hsrv.c @@ -238,8 +238,8 @@ static void end_handler(void *cls, struct MHD_Connection *connection, void **rec static void do_run(int signum, void *arg) { MHD_UNSIGNED_LONG_LONG to; - struct afb_hsrv *hsrv = arg; + if (!signum) { do { MHD_run(hsrv->httpd); } while(MHD_get_timeout(hsrv->httpd, &to) == MHD_YES && !to); } |