← Back to team overview

yade-dev team mailing list archive

[svn] r1924 - trunk/core

 

Author: eudoxos
Date: 2009-08-05 13:20:41 +0200 (Wed, 05 Aug 2009)
New Revision: 1924

Modified:
   trunk/core/yade.cpp
Log:
https://bugs.launchpad.net/yade/+bug/409254 take 2


Modified: trunk/core/yade.cpp
===================================================================
--- trunk/core/yade.cpp	2009-08-05 11:03:10 UTC (rev 1923)
+++ trunk/core/yade.cpp	2009-08-05 11:20:41 UTC (rev 1924)
@@ -62,6 +62,7 @@
 
 void
 sigHandler(int sig){
+	int res;
 	switch(sig){
 	#ifdef YADE_PYTHON
 		case SIGINT:
@@ -77,7 +78,7 @@
 		case SIGSEGV:
 			signal(SIGSEGV,SIG_DFL); signal(SIGABRT,SIG_DFL); // prevent loops - default handlers
 			cerr<<"SIGSEGV/SIGABRT handler called; gdb batch file is `"<<Omega::instance().gdbCrashBatch<<"'"<<endl;
-			int res=std::system((string("gdb -x ")+Omega::instance().gdbCrashBatch).c_str());
+			res=std::system((string("gdb -x ")+Omega::instance().gdbCrashBatch).c_str());
 			unlink(Omega::instance().gdbCrashBatch.c_str()); // delete the crash batch file
 			raise(sig); // reemit signal after exiting gdb
 			break;