diff options
Diffstat (limited to 'src/lib/daemon_run.c')
-rw-r--r-- | src/lib/daemon_run.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/lib/daemon_run.c b/src/lib/daemon_run.c index 129f7efb..cae500da 100644 --- a/src/lib/daemon_run.c +++ b/src/lib/daemon_run.c | |||
@@ -57,26 +57,26 @@ MHD_daemon_run (struct MHD_Daemon *daemon) | |||
57 | if (MHD_TM_EXTERNAL_EVENT_LOOP != daemon->threading_mode) | 57 | if (MHD_TM_EXTERNAL_EVENT_LOOP != daemon->threading_mode) |
58 | return MHD_SC_CONFIGURATION_MISMATCH_FOR_RUN_EXTERNAL; | 58 | return MHD_SC_CONFIGURATION_MISMATCH_FOR_RUN_EXTERNAL; |
59 | switch (daemon->event_loop_syscall) | 59 | switch (daemon->event_loop_syscall) |
60 | { | 60 | { |
61 | case MHD_ELS_POLL: | 61 | case MHD_ELS_POLL: |
62 | sc = MHD_daemon_poll_ (daemon, | 62 | sc = MHD_daemon_poll_ (daemon, |
63 | MHD_NO); | 63 | MHD_NO); |
64 | MHD_connection_cleanup_ (daemon); | 64 | MHD_connection_cleanup_ (daemon); |
65 | return sc; | 65 | return sc; |
66 | #ifdef EPOLL_SUPPORT | 66 | #ifdef EPOLL_SUPPORT |
67 | case MHD_ELS_EPOLL: | 67 | case MHD_ELS_EPOLL: |
68 | sc = MHD_daemon_epoll_ (daemon, | 68 | sc = MHD_daemon_epoll_ (daemon, |
69 | MHD_NO); | 69 | MHD_NO); |
70 | MHD_connection_cleanup_ (daemon); | 70 | MHD_connection_cleanup_ (daemon); |
71 | return sc; | 71 | return sc; |
72 | #endif | 72 | #endif |
73 | case MHD_ELS_SELECT: | 73 | case MHD_ELS_SELECT: |
74 | return MHD_daemon_select_ (daemon, | 74 | return MHD_daemon_select_ (daemon, |
75 | MHD_NO); | 75 | MHD_NO); |
76 | /* MHD_select does MHD_connection_cleanup_ already */ | 76 | /* MHD_select does MHD_connection_cleanup_ already */ |
77 | default: | 77 | default: |
78 | return MHD_SC_CONFIGURATION_UNEXPECTED_ELS; | 78 | return MHD_SC_CONFIGURATION_UNEXPECTED_ELS; |
79 | } | 79 | } |
80 | } | 80 | } |
81 | 81 | ||
82 | /* end of daemon_run.c */ | 82 | /* end of daemon_run.c */ |