Navigation


Changeset 683:d59effdf5256 in freeDiameter for freeDiameterd/main.c


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

Improve management of the signals in freeDiameterd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.