summaryrefslogtreecommitdiff
path: root/src/fdevent.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-05-17 23:27:34 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-05-17 23:28:32 -0400
commit6836a32c4f5f21b1924ff85693ef5affe4091fa8 (patch)
tree15db27f2d0ba16426a61f6f0dfbf21bbadd24062 /src/fdevent.c
parent7b5ba32a123a742dbb0519371ff953f980331792 (diff)
downloadlighttpd-git-6836a32c4f5f21b1924ff85693ef5affe4091fa8.tar.gz
[core] omit fdevent select() code if poll() avail
omit fdevent select() code if poll() avail translate server.event-handler = "select" to "poll" when poll available
Diffstat (limited to 'src/fdevent.c')
-rw-r--r--src/fdevent.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fdevent.c b/src/fdevent.c
index e3a5d961..6bcfec47 100644
--- a/src/fdevent.c
+++ b/src/fdevent.c
@@ -61,6 +61,10 @@ int fdevent_config(const char **event_handler_name, log_error_st *errh) {
if (NULL != event_handler && 0 == strcmp(event_handler, "libev"))
event_handler = NULL;
#endif
+#ifdef FDEVENT_USE_POLL
+ if (NULL != event_handler && 0 == strcmp(event_handler, "select"))
+ event_handler = "poll";
+#endif
if (NULL == event_handler) {
/* choose a good default