DropPrivs: Hard-fail if the user does not exist
[apt.git] / methods / http_main.cc
0 / 19 (  0%)
CommitLineData
1#include <config.h>
2#include <apt-pkg/fileutl.h>
3#include <signal.h>
4
5#include "http.h"
6
7int main()
8{
9 setlocale(LC_ALL, "");
10
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
15 HttpMethod Mth;
16
17 Mth.DropPrivsOrDie();
18 return Mth.Loop();
19}