journal: make sure to set MHD_USE_PIPE_FOR_SHUTDOWN for libmicrohttpd servers
authorLennart Poettering <lennart@poettering.net>
Wed, 30 Sep 2015 21:49:26 +0000 (23:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 Sep 2015 21:59:06 +0000 (23:59 +0200)
commitef08ced6b44d4f56477a6798e56ba5c5c9e0023f
treeec0f9fd4c7e04b3207c71bed44ff88582850d032
parente989fd9b67f5e19b115e940d397a83e260668763
journal: make sure to set MHD_USE_PIPE_FOR_SHUTDOWN for libmicrohttpd servers

This makes sure libmicrohttpd won't call shutdown() on our listening
sockets, which make sure socket activation and re-activation will work
cleanly.

See:

https://github.com/systemd/systemd/pull/1286
https://lists.gnu.org/archive/html/libmicrohttpd/2015-09/msg00014.html

Fixes #1286
src/journal-remote/journal-gatewayd.c
src/journal-remote/journal-remote.c