]> git.saurik.com Git - apt.git/blame - methods/http_main.cc
merge from lp:~mvo/apt/mvo
[apt.git] / methods / http_main.cc
CommitLineData
5f6b130d
MV
1#include <apt-pkg/fileutl.h>
2#include <apt-pkg/acquire-method.h>
217d575b 3#include <signal.h>
5f6b130d
MV
4
5#include "connect.h"
6#include "rfc2553emu.h"
7#include "http.h"
8
9
10int main()
11{
12 setlocale(LC_ALL, "");
13
217d575b
MV
14 // ignore SIGPIPE, this can happen on write() if the socket
15 // closes the connection (this is dealt with via ServerDie())
16 signal(SIGPIPE, SIG_IGN);
17
5f6b130d
MV
18 HttpMethod Mth;
19 return Mth.Loop();
20}