http_main.cc 302 B

123456789101112131415161718
  1. #include <config.h>
  2. #include <signal.h>
  3. #include "http.h"
  4. int main()
  5. {
  6. setlocale(LC_ALL, "");
  7. // ignore SIGPIPE, this can happen on write() if the socket
  8. // closes the connection (this is dealt with via ServerDie())
  9. signal(SIGPIPE, SIG_IGN);
  10. HttpMethod Mth;
  11. return Mth.Loop();
  12. }