X-Git-Url: https://git.hcoop.net/ntk/apt.git/blobdiff_plain/fa321bf3dbf363879cfc799b6c1cc4e5af50ffd8..453b82a388013e522b3a1b9fcd6ed0810dab1f4f:/methods/http_main.cc diff --git a/methods/http_main.cc b/methods/http_main.cc index 2c46ab19..3b346a51 100644 --- a/methods/http_main.cc +++ b/methods/http_main.cc @@ -1,15 +1,17 @@ -#include -#include +#include -#include "connect.h" -#include "rfc2553emu.h" -#include "http.h" +#include +#include "http.h" int main() { setlocale(LC_ALL, ""); + // ignore SIGPIPE, this can happen on write() if the socket + // closes the connection (this is dealt with via ServerDie()) + signal(SIGPIPE, SIG_IGN); + HttpMethod Mth; return Mth.Loop(); }