+static
+void sigusr2_handler(int signo)
+{
+ unsigned long count, removed, approx_before, approx_after;
+
+ /* Accounting */
+ printf("Counting nodes... ");
+ fflush(stdout);
+ cds_lfht_count_nodes(test_ht, &approx_before, &count, &removed,
+ &approx_after);
+ printf("done.\n");
+ printf("Approximation before node accounting: %lu nodes.\n",
+ approx_before);
+ printf("Accounting of nodes in the hash table: "
+ "%lu nodes + %lu logically removed.\n",
+ count, removed);
+ printf("Approximation after node accounting: %lu nodes.\n",
+ approx_after);
+}
+