]> git.saurik.com Git - apt.git/blob - methods/http_main.cc
avoid triggering gcc's -Wunsafe-loop-optimizations in EDSP
[apt.git] / methods / http_main.cc
1 #include <config.h>
2 #include <apt-pkg/fileutl.h>
3 #include <apt-pkg/error.h>
4 #include <signal.h>
5
6 #include "http.h"
7
8 int main()
9 {
10 setlocale(LC_ALL, "");
11
12 // ignore SIGPIPE, this can happen on write() if the socket
13 // closes the connection (this is dealt with via ServerDie())
14 signal(SIGPIPE, SIG_IGN);
15
16 HttpMethod Mth;
17
18 return Mth.Loop();
19 }