Mercurial > blahgd > experimental
changeset 923:f8bf32720459
daemon: move to ops-vector based scgisvc
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Fri, 01 Sep 2017 17:02:11 +0300 |
parents | 5bf62a7209ab |
children | 7518efba2cc1 |
files | daemon.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/daemon.c Thu Aug 31 16:23:59 2017 +0300 +++ b/daemon.c Fri Sep 01 17:02:11 2017 +0300 @@ -101,6 +101,9 @@ /* the main daemon process */ static int main_blahgd(int argc, char **argv, int mathfd) { + static const struct scgiops ops = { + .process = process_request, + }; int ret; /* drop unneeded privs */ @@ -122,7 +125,7 @@ goto err; ret = scgisvc(NULL, config.scgi_port, config.scgi_threads, - process_request, NULL); + &ops, NULL); if (ret) goto err;