http_main.cc 356 B

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