Changeset 7006ba5 for src


Ignore:
Timestamp:
Dec 16, 2019, 11:41:32 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
3c67255
Parents:
d912bed
Message:

move disabling SIGALRM/SIGUSR1 from main.cc to signal.hfa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    rd912bed r7006ba5  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Dec 13 23:47:06 2019
    13 // Update Count     : 626
     12// Last Modified On : Mon Dec 16 17:55:53 2019
     13// Update Count     : 627
    1414//
    1515
     
    116116        for ( int i = start; i < size - 2 && messages != nullptr; i += 1 ) {
    117117                char * mangled_name = nullptr, * offset_begin = nullptr, * offset_end = nullptr;
    118                 for ( char *p = messages[i]; *p; ++p ) {        // find parantheses and +offset
     118
     119                for ( char * p = messages[i]; *p; p += 1 ) {    // find parantheses and +offset
    119120                        if ( *p == '(' ) {
    120121                                mangled_name = p;
     
    160161
    161162        act.sa_sigaction = (void (*)(int, siginfo_t *, void *))handler;
    162         sigemptyset( &act.sa_mask );
    163         sigaddset( &act.sa_mask, SIGALRM );                                     // disabled during signal handler
    164         sigaddset( &act.sa_mask, SIGUSR1 );
    165163        act.sa_flags = flags;
    166164
Note: See TracChangeset for help on using the changeset viewer.