Changeset 97:00e36de5dcc4 in freeDiameter for extensions/dbg_monitor/monitor.c
- Timestamp:
- Dec 8, 2009, 10:55:57 AM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.