Changeset 120:d7acdc46134d in freeDiameter for extensions/test_app/ta_sig.c
- Timestamp:
- Dec 9, 2009, 5:36:38 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/test_app/ta_sig.c
r98 r120 36 36 /* Install the signal handler */ 37 37 38 #include " app_test.h"38 #include "test_app.h" 39 39 40 40 static pthread_t th = (pthread_t) NULL; 41 41 42 static void * atst_sig_th(void * arg)42 static void * ta_sig_th(void * arg) 43 43 { 44 44 int sig; … … 50 50 51 51 sigemptyset(&ss); 52 sigaddset(&ss, atst_conf->signal);52 sigaddset(&ss, ta_conf->signal); 53 53 54 54 while (1) { … … 69 69 } 70 70 71 int atst_sig_init(void (*cb)(void))71 int ta_sig_init(void (*cb)(void)) 72 72 { 73 return pthread_create( &th, NULL, atst_sig_th, (void *)cb );73 return pthread_create( &th, NULL, ta_sig_th, (void *)cb ); 74 74 } 75 75 76 void atst_sig_fini(void)76 void ta_sig_fini(void) 77 77 { 78 78 void * th_ret = NULL;
Note: See TracChangeset
for help on using the changeset viewer.