From: lilo_booter Date: Wed, 11 Feb 2004 19:49:24 +0000 (+0000) Subject: optional segv handling X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=02e5f78dd4ec304439ffcae242ed0ec50e1d7357;p=melted optional segv handling git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@139 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/miracle/miracle_local.c b/src/miracle/miracle_local.c index f169081..1a8b2e3 100644 --- a/src/miracle/miracle_local.c +++ b/src/miracle/miracle_local.c @@ -303,7 +303,7 @@ static void sigsegv_handler() miracle_log( LOG_CRIT, "Obtained %zd stack frames.\n", size ); for ( i = 0; i < size; i++ ) - miracle_log( LOG_CRIT, "%s\n", strings[ i ] ); + miracle_log( LOG_CRIT, "%s", strings[ i ] ); free( strings ); @@ -331,7 +331,8 @@ static valerie_response miracle_local_connect( miracle_local local ) signal( SIGPIPE, signal_handler ); signal( SIGALRM, signal_handler ); signal( SIGCHLD, SIG_IGN ); - signal( SIGSEGV, sigsegv_handler ); + if ( getenv( "MLT_SIGSEGV" ) ) + signal( SIGSEGV, sigsegv_handler ); return response; }