diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2023-03-19 11:02:53 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2023-03-19 11:02:53 +0200 |
commit | fa9e2d43f220cb1be94e8d83fa41136b77697891 (patch) | |
tree | ca676b548f9afbc174ad983824629158f60769d9 | |
parent | d10444ec6d6b51ff8d265e3d3035e4d3c45477dc (diff) | |
download | fileserv-master.tar.gz fileserv-master.tar.bz2 |
* src/fileserv.c (http_server): Place MHD_OPTION_EXTERNAL_LOGGER
option first, to avoid runtime error on newer libmicrohttpd.
-rw-r--r-- | src/fileserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileserv.c b/src/fileserv.c index 09eefcc..00521bd 100644 --- a/src/fileserv.c +++ b/src/fileserv.c @@ -657,15 +657,15 @@ http_server(int fd, struct sockaddr *server_addr) MHD_set_panic_func(fileserv_panic, NULL); mhd = MHD_start_daemon(MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, 0, fileserv_acl, server_addr, fileserv_handler, NULL, - MHD_OPTION_LISTEN_SOCKET, fd, MHD_OPTION_EXTERNAL_LOGGER, fileserv_logger, NULL, + MHD_OPTION_LISTEN_SOCKET, fd, MHD_OPTION_END); /* Unblock only the fatal signals */ sigdelset(&sigs, SIGPIPE); pthread_sigmask(SIG_UNBLOCK, &sigs, NULL); /* Wait for signal to arrive */ sigwait(&sigs, &i); |