diff options
-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) | |||
657 | MHD_set_panic_func(fileserv_panic, NULL); | 657 | MHD_set_panic_func(fileserv_panic, NULL); |
658 | 658 | ||
659 | mhd = MHD_start_daemon(MHD_USE_INTERNAL_POLLING_THREAD | 659 | mhd = MHD_start_daemon(MHD_USE_INTERNAL_POLLING_THREAD |
660 | | MHD_USE_ERROR_LOG, 0, | 660 | | MHD_USE_ERROR_LOG, 0, |
661 | fileserv_acl, server_addr, | 661 | fileserv_acl, server_addr, |
662 | fileserv_handler, NULL, | 662 | fileserv_handler, NULL, |
663 | MHD_OPTION_LISTEN_SOCKET, fd, | ||
664 | MHD_OPTION_EXTERNAL_LOGGER, fileserv_logger, | 663 | MHD_OPTION_EXTERNAL_LOGGER, fileserv_logger, |
665 | NULL, | 664 | NULL, |
665 | MHD_OPTION_LISTEN_SOCKET, fd, | ||
666 | MHD_OPTION_END); | 666 | MHD_OPTION_END); |
667 | /* Unblock only the fatal signals */ | 667 | /* Unblock only the fatal signals */ |
668 | sigdelset(&sigs, SIGPIPE); | 668 | sigdelset(&sigs, SIGPIPE); |
669 | pthread_sigmask(SIG_UNBLOCK, &sigs, NULL); | 669 | pthread_sigmask(SIG_UNBLOCK, &sigs, NULL); |
670 | /* Wait for signal to arrive */ | 670 | /* Wait for signal to arrive */ |
671 | sigwait(&sigs, &i); | 671 | sigwait(&sigs, &i); |