Extract SIGPIPE ignoring code to a common place.
[chromium-blink-merge.git] / chrome / common / bzip2_error_handler.cc
blobe66bcf3e055c033e415a5cbbc8939ec4dbcdc834
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include <ostream>
7 #include "base/logging.h"
9 // We define BZ_NO_STDIO in third_party/bzip2 to remove its internal STDERR
10 // error reporting. This requires us to export our own error handler.
11 extern "C"
12 void bz_internal_error(int errcode) {
13 LOG(FATAL) << "bzip2 internal error: " << errcode;