From a96b287c03ba6715cf979a35d4d9e91ebee9cca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Thu, 17 May 2007 13:29:45 +0200 Subject: [PATCH] Added some extra debug. Rev: src/signal_handler.c:1.325 --- src/signal_handler.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/signal_handler.c b/src/signal_handler.c index 0ca317ddb8..5b4c6295bf 100644 --- a/src/signal_handler.c +++ b/src/signal_handler.c @@ -2,7 +2,7 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: signal_handler.c,v 1.324 2007/01/13 15:49:40 grubba Exp $ +|| $Id: signal_handler.c,v 1.325 2007/05/17 11:29:45 grubba Exp $ */ #include "global.h" @@ -4761,6 +4761,21 @@ PMOD_EXPORT void low_init_signals(void) my_signal(SIGFPE, SIG_IGN); #endif + /* SIGPIPE */ +#ifdef SIGPIPE +#ifdef PIKE_EXTRA_DEBUG + set_pike_debug_options(DEBUG_SIGNALS, DEBUG_SIGNALS); +#endif + if (set_pike_debug_options(0,0) & DEBUG_SIGNALS) { + if (sizeof(void *) == 8) { + /* 64-bit Solaris 10 in Xenofarm fails with SIGPIPE. + * Force a core dump. + */ + my_signal(SIGPIPE, abort); + } + } +#endif + /* Restore aby custom signals if needed. */ for(e=0;e<MAX_SIGNALS;e++) { -- GitLab