X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmain.c;h=6d8a025a735bb6367e52cc256c0ecfec1c196356;hb=cc5ecbf3e8768c8a69e22df3e6a73ef3d57d9b9e;hp=74d5d27e2b334e53920b4555cd7650efd7346fa0;hpb=01de7d16f1e8dfdf00a31de19e3719b45752eb4d;p=collection4.git diff --git a/src/main.c b/src/main.c index 74d5d27..6d8a025 100644 --- a/src/main.c +++ b/src/main.c @@ -114,12 +114,18 @@ static int handle_request (void) /* {{{ */ for (i = 0; i < actions_num; i++) { if (strcmp (action, actions[i].name) == 0) + { status = (*actions[i].callback) (); + break; + } } if (i >= actions_num) status = action_usage (); + fflush (stdout); + fclose (stdout); + gl_update (/* request_served = */ 1); return (status);