Navigation


Changeset 97:00e36de5dcc4 in freeDiameter


Ignore:
Timestamp:
Dec 8, 2009, 10:55:57 AM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Resolved signal conflict

Location:
extensions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_test/app_test.c

    r95 r97  
    3939
    4040#include "app_test.h"
     41#include <signal.h>
    4142
    4243/* Initialize the configuration */
     
    5758        atst_conf->dest_realm = strdup(fd_g_config->cnf_diamrlm);
    5859        atst_conf->dest_host  = NULL;
    59         atst_conf->signal     = 10; /* SIGUSR1 */
     60        atst_conf->signal     = APP_TEST_DEFAULT_SIGNAL;
    6061       
    6162        return 0;
  • extensions/app_test/app_test.h

    r93 r97  
    4343#include <freeDiameter/extension.h>
    4444
     45#ifndef APP_TEST_DEFAULT_SIGNAL
     46#define APP_TEST_DEFAULT_SIGNAL SIGUSR1
     47#endif /* APP_TEST_DEFAULT_SIGNAL */
     48
     49
    4550/* Mode for the extension */
    4651#define MODE_SERV       0x1
     
    5661        char    *       dest_realm;     /* default local realm */
    5762        char    *       dest_host;      /* default NULL */
    58         int             signal;         /* default SIGUSR1 */
     63        int             signal;         /* default APP_TEST_DEFAULT_SIGNAL */
    5964};
    6065extern struct atst_conf * atst_conf;
  • extensions/dbg_monitor/monitor.c

    r25 r97  
    3636/* Monitoring extension:
    3737 - periodically display queues and peers information
    38  - upon SIGUSR1, display additional debug information
     38 - upon SIGUSR2, display additional debug information
    3939 */
    4040
    4141#include <freeDiameter/extension.h>
    4242#include <signal.h>
     43
     44#ifndef MONITOR_SIGNAL
     45#define MONITOR_SIGNAL  SIGUSR2
     46#endif /* MONITOR_SIGNAL */
    4347
    4448static int       monitor_main(char * conffile);
     
    6468        memset(&act, 0, sizeof(act));
    6569        act.sa_handler = got_sig;
    66         CHECK_SYS_DO( sigaction(SIGUSR1, &act, NULL), /* conitnue */ );
     70        CHECK_SYS_DO( sigaction(MONITOR_SIGNAL, &act, NULL), /* conitnue */ );
    6771        sigemptyset(&sig);
    68         sigaddset(&sig, SIGUSR1);
     72        sigaddset(&sig, MONITOR_SIGNAL);
    6973        CHECK_POSIX_DO(  pthread_sigmask(SIG_UNBLOCK, &sig, NULL), /* conitnue */  );
    7074       
Note: See TracChangeset for help on using the changeset viewer.