Index: trunk/config.h.in =================================================================== --- trunk/config.h.in (revision 20844) +++ trunk/config.h.in (revision 20845) @@ -132,6 +132,8 @@ @] print {\n\n/* Define whether we have specific signals. */\n} +print_ternary ?signal/names/SIGPIPE/presents {#define PCB_HAVE_SIGPIPE 1} {/* #undef PCB_HAVE_SIGPIPE */} +print {\n} print_ternary ?signal/names/SIGSEGV/presents {#define PCB_HAVE_SIGSEGV 1} {/* #undef PCB_HAVE_SIGSEGV */} print {\n} print_ternary ?signal/names/SIGABRT/presents {#define PCB_HAVE_SIGABRT 1} {/* #undef PCB_HAVE_SIGABRT */} Index: trunk/src/main.c =================================================================== --- trunk/src/main.c (revision 20844) +++ trunk/src/main.c (revision 20845) @@ -101,9 +101,8 @@ #endif /* calling external program by popen() may cause a PIPE signal, - * so we ignore it - */ -#ifdef SIGPIPE + so we ignore it */ +#ifdef PCB_HAVE_SIGPIPE signal(SIGPIPE, SIG_IGN); #endif }