On Mon, May 11, 2020 at 10:24 AM Steffen <i...@apachelounge.com> wrote: > > Then it did not start: > > [core:error] [pid 2796:tid 864] (70023)This function has not been > implemented on this platform: AH10231: httpd: Failed creating pid file > C:/Apache2x/logs/httpd.pid.EnERCx
What about the attached patch? Regards; Yann.
Index: server/log.c =================================================================== --- server/log.c (revision 1877552) +++ server/log.c (working copy) @@ -1570,7 +1570,7 @@ AP_DECLARE(void) ap_log_pid(apr_pool_t *p, const c apr_snprintf(pidstr, sizeof pidstr, "%" APR_PID_T_FMT APR_EOL_STR, mypid); perms = APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD; - if ((rv = apr_file_perms_set(temp_fname, perms)) != APR_SUCCESS + if (((rv = apr_file_perms_set(temp_fname, perms)) != APR_SUCCESS && rv != APR_ENOTIMPL) || (rv = apr_file_write_full(pid_file, pidstr, strlen(pidstr), NULL)) != APR_SUCCESS || (rv = apr_file_close(pid_file)) != APR_SUCCESS || (rv = apr_file_rename(temp_fname, fname, p)) != APR_SUCCESS) {