Changeset 8122 in orxonox.OLD for branches/osx/src/util
- Timestamp:
- Jun 2, 2006, 5:46:11 PM (19 years ago)
- Location:
- branches/osx/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/osx/src/util/signal_handler.cc
r7791 r8122 46 46 void SignalHandler::catchSignal( int sig ) 47 47 { 48 sig handler_t handler = signal( sig, SignalHandler::sigHandler );48 sig_t handler = signal( sig, SignalHandler::sigHandler ); 49 49 50 50 assert( handler != SIG_ERR ); … … 59 59 void SignalHandler::sigHandler( int sig ) 60 60 { 61 61 62 std::string sigName = "UNKNOWN"; 62 63 63 64 switch ( sig ) 64 65 { … … 83 84 if ( pid == 0 ) 84 85 { 85 getInstance()->dontCatch(); 86 86 getInstance()->dontCatch(); 87 87 sleep(2); 88 89 88 90 89 return; -
branches/osx/src/util/signal_handler.h
r7791 r8122 11 11 12 12 13 13 #define GDB_BT_FILE "orxonox.backtrace" 14 14 enum GdbRunType{ 15 15 GDB_RUN_WRITE_TO_FILE = 1, … … 24 24 { 25 25 int signal; 26 sig handler_t handler;26 sig_t handler; 27 27 }; 28 28
Note: See TracChangeset
for help on using the changeset viewer.