]> git.saurik.com Git - apt.git/blame_incremental - methods/http_main.cc
DropPrivs: Move the re-set uid/gid thing to the end of the function
[apt.git] / methods / http_main.cc
... / ...
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}