about summary refs log tree commit homepage
path: root/cmogstored.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmogstored.c')
-rw-r--r--cmogstored.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/cmogstored.c b/cmogstored.c
index 35b08f9..1c2f7db 100644
--- a/cmogstored.c
+++ b/cmogstored.c
@@ -287,9 +287,9 @@ static bool svc_start_each(void *svcptr, void *qptr)
 
         svc->queue = q;
 
-        if (svc->mgmt_fd >= 0) {
+        if (svc->mgmt_mfd) {
                 have_mgmt = true;
-                ac = mog_accept_init(svc->mgmt_fd, svc, mog_mgmt_post_accept);
+                ac = &svc->mgmt_mfd->as.accept;
 
                 /*
                  * mgmt port is rarely used and always persistent, so it
@@ -298,14 +298,13 @@ static bool svc_start_each(void *svcptr, void *qptr)
                 mog_thrpool_start(&ac->thrpool, 1, mog_accept_loop, ac);
         }
 
-        if (svc->http_fd >= 0) {
-                ac = mog_accept_init(svc->http_fd, svc, mog_http_post_accept);
+        if (svc->http_mfd) {
+                ac = &svc->http_mfd->as.accept;
                 mog_thrpool_start(&ac->thrpool, athr, mog_accept_loop, ac);
         }
 
-        if (svc->httpget_fd >= 0) {
-                ac = mog_accept_init(svc->httpget_fd, svc,
-                                     mog_httpget_post_accept);
+        if (svc->httpget_mfd) {
+                ac = &svc->httpget_mfd->as.accept;
                 mog_thrpool_start(&ac->thrpool, athr, mog_accept_loop, ac);
         }