diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-02 14:07:18 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-02 14:07:18 +0200 |
commit | ab7f4d7ca647270ffd34b5b6c67339b0cfde51ac (patch) | |
tree | 8bbc5b1bd2adbfa72f3cc6c4ca83a3fcf902c460 /methods/http.cc | |
parent | 3a998f6ad4aab8b55b5c8c35927c38b9f53018c4 (diff) |
* apt-pkg/acquire-worker.cc:
- show error details of failed methods
* apt-pkg/contrib/fileutl.cc:
- if a process aborts with signal, show signal number
* methods/http.cc:
- ignore SIGPIPE, we deal with EPIPE from write in
HttpMethod::ServerDie() (LP: #385144)
Diffstat (limited to 'methods/http.cc')
-rw-r--r-- | methods/http.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc index 1bf798da4..006e89394 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -1316,9 +1316,11 @@ 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(); } |