Changeset ade5272


Ignore:
Timestamp:
May 11, 2018, 12:10:12 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
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, with_gc
Children:
52df81c
Parents:
705e612
Message:

Alarm thread can no longer catch SIGTERM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/preemption.c

    r705e612 rade5272  
    357357        // Block sigalrms to control when they arrive
    358358        sigset_t mask;
     359        sigfillset(&mask);
     360        if ( pthread_sigmask( SIG_BLOCK, &mask, NULL ) == -1 ) {
     361            abort( "internal error, pthread_sigmask" );
     362        }
     363
    359364        sigemptyset( &mask );
    360365        sigaddset( &mask, SIGALRM );
    361 
    362         if ( pthread_sigmask( SIG_BLOCK, &mask, NULL ) == -1 ) {
    363             abort( "internal error, pthread_sigmask" );
    364         }
    365366
    366367        // Main loop
Note: See TracChangeset for help on using the changeset viewer.