Changeset 2103 for code/trunk/src/util/SignalHandler.cc
- Timestamp:
- Nov 2, 2008, 12:22:42 AM (17 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/util
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/util/SignalHandler.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
r2087 r2103 58 58 * register signal handlers for SIGSEGV and SIGABRT 59 59 * @param appName path to executable eg argv[0] 60 * @param file Name filename to append backtrace to61 */ 62 void SignalHandler::doCatch( const std::string & appName, const std::string & file Name )60 * @param filename filename to append backtrace to 61 */ 62 void SignalHandler::doCatch( const std::string & appName, const std::string & filename ) 63 63 { 64 64 this->appName = appName; 65 this->file Name = fileName;65 this->filename = filename; 66 66 67 67 // prepare for restoring XAutoKeyRepeat … … 326 326 bt.insert(0, timeString); 327 327 328 FILE * f = fopen( getInstance()->file Name.c_str(), "a" );328 FILE * f = fopen( getInstance()->filename.c_str(), "a" ); 329 329 330 330 if ( !f ) 331 331 { 332 perror( ( std::string( "could not append to " ) + getInstance()->file Name ).c_str() );332 perror( ( std::string( "could not append to " ) + getInstance()->filename ).c_str() ); 333 333 exit(EXIT_FAILURE); 334 334 } … … 336 336 if ( fwrite( bt.c_str(), 1, bt.length(), f ) != bt.length() ) 337 337 { 338 COUT(0) << "could not write " << bt.length() << " byte to " << getInstance()->file Name << std::endl;338 COUT(0) << "could not write " << bt.length() << " byte to " << getInstance()->filename << std::endl; 339 339 exit(EXIT_FAILURE); 340 340 }
Note: See TracChangeset
for help on using the changeset viewer.