Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
free SIGALRM for boost timers
[src/app-framework-binder.git]
/
src
/
afb-hsrv.c
diff --git
a/src/afb-hsrv.c
b/src/afb-hsrv.c
index
51502a6
..
d06d8fc
100644
(file)
--- 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;
static void do_run(int signum, void *arg)
{
MHD_UNSIGNED_LONG_LONG to;
-
struct afb_hsrv *hsrv = arg;
struct afb_hsrv *hsrv = arg;
+
if (!signum) {
do { MHD_run(hsrv->httpd); } while(MHD_get_timeout(hsrv->httpd, &to) == MHD_YES && !to);
}
if (!signum) {
do { MHD_run(hsrv->httpd); } while(MHD_get_timeout(hsrv->httpd, &to) == MHD_YES && !to);
}