Changeset f2b12406 for src/libcfa/concurrency/preemption.c
- Timestamp:
- Jul 12, 2017, 10:14:11 AM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- f73f5f4
- Parents:
- 0322865c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/preemption.c
r0322865c rf2b12406 209 209 LIB_DEBUG_PRINT_SAFE("Kernel : Starting preemption\n"); 210 210 __kernel_sigaction( SIGUSR1, sigHandler_ctxSwitch, SA_SIGINFO ); 211 __kernel_sigaction( SIGSEGV, sigHandler_segv , SA_SIGINFO );212 __kernel_sigaction( SIGBUS , sigHandler_segv , SA_SIGINFO );211 // __kernel_sigaction( SIGSEGV, sigHandler_segv , SA_SIGINFO ); 212 // __kernel_sigaction( SIGBUS , sigHandler_segv , SA_SIGINFO ); 213 213 214 214 signal_block( SIGALRM ); … … 417 417 ) 418 418 419 void sigHandler_segv( __CFA_SIGPARMS__ ) {420 LIB_DEBUG_DO(421 #ifdef __USE_STREAM__422 serr | "*CFA runtime error* program cfa-cpp terminated with"423 | (sig == SIGSEGV ? "segment fault." : "bus error.")424 | endl;425 #else426 fprintf( stderr, "*CFA runtime error* program cfa-cpp terminated with %s\n", sig == SIGSEGV ? "segment fault." : "bus error." );427 #endif428 429 // skip first 2 stack frames430 __kernel_backtrace( 1 );431 )432 exit( EXIT_FAILURE );433 }419 // void sigHandler_segv( __CFA_SIGPARMS__ ) { 420 // LIB_DEBUG_DO( 421 // #ifdef __USE_STREAM__ 422 // serr | "*CFA runtime error* program cfa-cpp terminated with" 423 // | (sig == SIGSEGV ? "segment fault." : "bus error.") 424 // | endl; 425 // #else 426 // fprintf( stderr, "*CFA runtime error* program cfa-cpp terminated with %s\n", sig == SIGSEGV ? "segment fault." : "bus error." ); 427 // #endif 428 429 // // skip first 2 stack frames 430 // __kernel_backtrace( 1 ); 431 // ) 432 // exit( EXIT_FAILURE ); 433 // } 434 434 435 435 // void sigHandler_abort( __CFA_SIGPARMS__ ) {
Note: See TracChangeset
for help on using the changeset viewer.