Changeset 8293 in orxonox.OLD for trunk/src/util
- Timestamp:
- Jun 8, 2006, 11:11:37 PM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/signal_handler.cc
r8228 r8293 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 ); … … 63 63 (*(it->cb))( it->someData ); 64 64 } 65 66 std::string sigName = "UNKNOWN"; 65 67 66 std::string sigName = "UNKNOWN";67 68 68 switch ( sig ) 69 69 { … … 90 90 { 91 91 getInstance()->dontCatch(); 92 93 92 sleep(2); 94 93 -
trunk/src/util/signal_handler.h
r8228 r8293 10 10 #include <string> 11 11 12 12 13 #define GDB_BT_FILE "orxonox.backtrace" 13 14 14 enum GdbRunType{ 15 15 GDB_RUN_WRITE_TO_FILE = 1, … … 25 25 { 26 26 int signal; 27 sig handler_t handler;27 sig_t handler; 28 28 }; 29 29
Note: See TracChangeset
for help on using the changeset viewer.