[mod_authn_ldap] ldap_set_option LDAP_OPT_RESTART (fixes #2940)
commitae9cafecea3ca0786dfad260ca064fc824e5ccc9
authorGlenn Strauss <gstrauss@gluelogic.com>
Mon, 27 May 2019 06:05:51 +0000 (27 02:05 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Mon, 27 May 2019 12:32:48 +0000 (27 08:32 -0400)
tree97774e9bac40a66106248b8c2e0ddc2fc43889ac
parent4ac239c40193378ae09f28355530a3a04858065e
[mod_authn_ldap] ldap_set_option LDAP_OPT_RESTART (fixes #2940)

ldap_set_option LDAP_OPT_RESTART to handle EINTR on SIGCHLD from CGI

(ldap uses poll(), which is not restartable with sigaction SA_RESTART)

x-ref:
  "mod_authn_ldap/mod_cgi race condition, "Can't contact LDAP server""
  https://redmine.lighttpd.net/issues/2940
src/mod_authn_ldap.c
src/mod_vhostdb_ldap.c