Changed the APDU handler to handle freeing the transactions even when there is a custom handler being used.

This commit is contained in:
skarg
2005-12-17 22:37:16 +00:00
parent 9a9d072e14
commit 1f34710f24
3 changed files with 14 additions and 8 deletions
+11
View File
@@ -242,10 +242,21 @@ static void print_address_cache(void)
}
}
static void print_tsm_stats(void)
{
int idle = 0;
int total = 0;
idle = tsm_transaction_idle_count();
total = MAX_TSM_TRANSACTIONS;
fprintf(stderr,"TSM: %d idle of %d transactions\n",idle,total);
}
static void sig_handler(int signo)
{
datalink_cleanup();
print_address_cache();
print_tsm_stats();
exit(0);
}