Navigation


Changeset 683:d59effdf5256 in freeDiameter


Ignore:
Timestamp:
Jan 18, 2011, 3:13:14 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Improve management of the signals in freeDiameterd

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • contrib/debian/changelog

    r681 r683  
    1111  * (app_radgw.fdx) Better handling conversion of DEA with error status
    1212    to RADIUS (closes #25)
     13  * Allow default signals such as SIGTSTP (ctrl-z) to be used with
     14    freeDiameterd
    1315
    14  -- Sebastien Decugis <sdecugis@nict.go.jp>  Tue, 18 Jan 2011 14:53:52 +0900
     16 -- Sebastien Decugis <sdecugis@nict.go.jp>  Tue, 18 Jan 2011 15:13:00 +0900
    1517
    1618freediameter (1.0.4) UNRELEASED; urgency=low
  • freeDiameterd/main.c

    r662 r683  
    6262        sigset_t sig_all;
    6363       
    64         /* Block all signals from the current thread and all its future children */
     64        /* Block all signals from the current thread and all its future children -- we will catch everything in catch_signals */
    6565        sigfillset(&sig_all);
    6666        ret = pthread_sigmask(SIG_BLOCK, &sig_all, NULL);
     
    270270        sigaddset(&ss, SIGUSR2);
    271271       
     272        /* We unblock all other signals, so that their default handler is used (such as SIGTSTP) */
     273        CHECK_SYS_DO( pthread_sigmask( SIG_SETMASK, &ss, NULL ), goto out );
     274       
    272275        /* Now loop on the reception of the signal */
    273276        while (1) {
Note: See TracChangeset for help on using the changeset viewer.