Changeset 97:00e36de5dcc4 in freeDiameter
- Timestamp:
- Dec 8, 2009, 10:55:57 AM (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_test/app_test.c
r95 r97 39 39 40 40 #include "app_test.h" 41 #include <signal.h> 41 42 42 43 /* Initialize the configuration */ … … 57 58 atst_conf->dest_realm = strdup(fd_g_config->cnf_diamrlm); 58 59 atst_conf->dest_host = NULL; 59 atst_conf->signal = 10; /* SIGUSR1 */60 atst_conf->signal = APP_TEST_DEFAULT_SIGNAL; 60 61 61 62 return 0; -
extensions/app_test/app_test.h
r93 r97 43 43 #include <freeDiameter/extension.h> 44 44 45 #ifndef APP_TEST_DEFAULT_SIGNAL 46 #define APP_TEST_DEFAULT_SIGNAL SIGUSR1 47 #endif /* APP_TEST_DEFAULT_SIGNAL */ 48 49 45 50 /* Mode for the extension */ 46 51 #define MODE_SERV 0x1 … … 56 61 char * dest_realm; /* default local realm */ 57 62 char * dest_host; /* default NULL */ 58 int signal; /* default SIGUSR1*/63 int signal; /* default APP_TEST_DEFAULT_SIGNAL */ 59 64 }; 60 65 extern struct atst_conf * atst_conf; -
extensions/dbg_monitor/monitor.c
r25 r97 36 36 /* Monitoring extension: 37 37 - periodically display queues and peers information 38 - upon SIGUSR 1, display additional debug information38 - upon SIGUSR2, display additional debug information 39 39 */ 40 40 41 41 #include <freeDiameter/extension.h> 42 42 #include <signal.h> 43 44 #ifndef MONITOR_SIGNAL 45 #define MONITOR_SIGNAL SIGUSR2 46 #endif /* MONITOR_SIGNAL */ 43 47 44 48 static int monitor_main(char * conffile); … … 64 68 memset(&act, 0, sizeof(act)); 65 69 act.sa_handler = got_sig; 66 CHECK_SYS_DO( sigaction( SIGUSR1, &act, NULL), /* conitnue */ );70 CHECK_SYS_DO( sigaction(MONITOR_SIGNAL, &act, NULL), /* conitnue */ ); 67 71 sigemptyset(&sig); 68 sigaddset(&sig, SIGUSR1);72 sigaddset(&sig, MONITOR_SIGNAL); 69 73 CHECK_POSIX_DO( pthread_sigmask(SIG_UNBLOCK, &sig, NULL), /* conitnue */ ); 70 74
Note: See TracChangeset
for help on using the changeset viewer.