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