diff options
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(); +} |