diff --git a/src/tool_main.c b/src/tool_main.c index 9c0a19f3f..ec6517650 100644 --- a/src/tool_main.c +++ b/src/tool_main.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2013, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -23,6 +23,10 @@ #include +#ifdef HAVE_SIGNAL_H +#include +#endif + #define ENABLE_CURLX_PRINTF /* use our own printf() functions */ #include "curlx.h" @@ -83,6 +87,10 @@ int main(int argc, char *argv[]) main_checkfds(); +#ifdef HAVE_SIGNAL + signal(SIGPIPE, SIG_IGN); +#endif + res = operate(&config, argc, argv); #ifdef __SYMBIAN32__