http_main.cc 320 B

12345678910111213141516
  1. #include <config.h>
  2. #include <apt-pkg/fileutl.h>
  3. #include <apt-pkg/error.h>
  4. #include <signal.h>
  5. #include "http.h"
  6. int main()
  7. {
  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. return HttpMethod().Loop();
  12. }