http_main.cc 413 B

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