diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-30 17:34:48 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-30 17:34:48 +0200 |
commit | 55fb35e87a1ff550cbb3010c5a03064f0a2b10be (patch) | |
tree | 6ecb92eb145eefbb0c4a6dc6a869d9e21ba10b55 /methods/http.cc | |
parent | adbce12126ccc58016af69d541bafad5c8bde631 (diff) | |
parent | d5752e18bed18c706c93f5c43c61016c72132ede (diff) |
merged from debian
Diffstat (limited to 'methods/http.cc')
-rw-r--r-- | methods/http.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/methods/http.cc b/methods/http.cc index 3f13be050..476fb751f 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -1316,5 +1316,15 @@ int HttpMethod::Loop() } /*}}}*/ +int main() +{ + setlocale(LC_ALL, ""); + // ignore SIGPIPE, this can happen on write() if the socket + // closes the connection (this is dealt with via ServerDie()) + signal(SIGPIPE, SIG_IGN); + + HttpMethod Mth; + return Mth.Loop(); +} |